Message ID | 20221130145356.1129901-2-gerald.loacker@wolfvision.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp975232wrr; Wed, 30 Nov 2022 06:59:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bL9lEWaZ1WpA+whYk/nt+clhh/Yk9HN5XRnUaKZu55uSJBzgC9iqB5oippCZ/jUZ+0dJw X-Received: by 2002:a17:902:9343:b0:188:b7d6:46bf with SMTP id g3-20020a170902934300b00188b7d646bfmr44123797plp.111.1669820361485; Wed, 30 Nov 2022 06:59:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669820361; cv=pass; d=google.com; s=arc-20160816; b=ewOpdMMtyZrkoVDze9D9sZ6ZvC+IoqZEaglLgZT3W7HoMflg3/ZYok4taGgdj3PbEk kwFk8mDiJ5qIDgomDrpD+RapNpORPzotyXovFzoN6ZV8G32Z3grcfDWv1wCYGdQvwEYk 5yyCFhwWj24CIqPYpALUV8btIHn7i05lKhbN9XuttYYRGHTH3NszrofUH7BnIXAsKdab kLQCJq2AXJ4NNwxbB7nwd/0QJckc5qchQwmPVyHGJzbg4bVX7HZMVisZipqCCl2NAj7K 1Bqe+z8h5QX6eNjJMyLEFCd5GjGbNgxBoKzueRCcV97rokapnVUOmSrU/tqynVReNyae Vq6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6KGfj0a4nDe53WaQ65o+byEaBR3heOWkJau4frimBEo=; b=K5QHaDInvzmJ1Eua5YGnRF9sehjedsPILUW62vADiXVKGU9DMcTHo5Kju/pizD+U79 NmFYNVTLbNLSpi///VVGJS3zyCds0IVMugFICzzuym+rGWCqR1WlYt0I6SVEfArCS3JY gbViMO57Q5rAYBL4oWlMjykaKwkI7HVc9Px60AcnoxXvn5TuetIMFGD9JHfrPmxszYuF zvTUQU1NIs1WiotcvfEhtTE5k8x3enLS0zf9eaMZnvYMQfIicoDx54mUI4EjQ4iMTsPu M3L6DCSUBdDrmRknSLCUBs4HURZHlLN8lcortR8MuoxpdQE0n0EHR/J7+HB25mgs0fsw 0U1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=iPyZXysf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a170902f7cc00b001899515b268si491058plw.433.2022.11.30.06.59.08; Wed, 30 Nov 2022 06:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=iPyZXysf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229749AbiK3OyU (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Wed, 30 Nov 2022 09:54:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbiK3OyR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 30 Nov 2022 09:54:17 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2076.outbound.protection.outlook.com [40.107.21.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 522332AC60; Wed, 30 Nov 2022 06:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eQv4pCh4Q0m1K2sLHHRMdDvRu00gaOxphMp4tZ3mhXFn6wfkPs3UEppB8ciaXVRSAvQS67vKA9g4Pta1oXKVlaT0fzHbnMRe8n6w8a4galaLuJxoUfJQ042zj9I55qW4URyrD99+UPRrEmDoE4/xiJFgZDf/iFeK212Gv10zCYEWkhJX+tcspfxlXY3XD+npJj2LBEE+cp6E0t+E770AIHNxJNfUf9WaxAS0qdiDHWjOfCI8kqkfeMjyIID01PEHNk/cxBHEnm6D4Loe9tr2864Q3/VJXNWCVOa2TXkAE2j1aXvW3YWALOs+vknuj+hfqwUcgOMgswa9XJzKz3TloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6KGfj0a4nDe53WaQ65o+byEaBR3heOWkJau4frimBEo=; b=iw78QA9eU2zlHOu1jLo2CHm0HdZ0FB8r/X8IlsuaK0zwTmGpiej4tQBX+BnNjg55IpspQu2xVhQjdSKjVRiOrRg846QdcHfBmpOpbnW4wCscnpmuL/egca7Rr8jbDR3CyQHElFJ5gpVEmHspf/pKOFRa+MgsbrnpBXdd4uhn9SlTeGJxbTjpC/MnoPpm1ojTLkXSenE7j5Et4uzjHPop/HKQL5/AsQ7Hx6b/qAaxjf6X5adOMIiqXQZ/W7wMkqQ0NEmnY+14piuTlKHB/A6ry48B2hZC043OyCVU8+wZa/aGp+AmbOT5E1DXktbKVOd1LIZfx3o0t4nZbc8oU0Is4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6KGfj0a4nDe53WaQ65o+byEaBR3heOWkJau4frimBEo=; b=iPyZXysfYuXK35UXIGcsjsMt3DTbDff6GGIVMU0KAtQEhPdy/qJpp7X0K2W6KwQgp3wGlOu4zIr+psJwbgJ5q2GaHPMhjhhLMGnVUBGiwoMefYPIomPap2UPvihEELr/qPOyeaG2Ebxnh3hKjqIv/5ejfbTzTyimhsYH5sfSwgM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) by DBBPR08MB5977.eurprd08.prod.outlook.com (2603:10a6:10:209::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Wed, 30 Nov 2022 14:54:13 +0000 Received: from VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::bcc7:bc51:bf44:1454]) by VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::bcc7:bc51:bf44:1454%6]) with mapi id 15.20.5880.008; Wed, 30 Nov 2022 14:54:13 +0000 From: Gerald Loacker <gerald.loacker@wolfvision.net> To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Jakob Hauser <jahau@rocketmail.com>, Linus Walleij <linus.walleij@linaro.org>, Nikita Yushchenko <nikita.yoush@cogentembedded.com>, Michael Riesch <michael.riesch@wolfvision.net>, Gerald Loacker <gerald.loacker@wolfvision.net> Subject: [PATCH v5 1/3] iio: add struct declaration for iio types Date: Wed, 30 Nov 2022 15:53:54 +0100 Message-Id: <20221130145356.1129901-2-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221130145356.1129901-1-gerald.loacker@wolfvision.net> References: <20221130145356.1129901-1-gerald.loacker@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR0102CA0084.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::25) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|DBBPR08MB5977:EE_ X-MS-Office365-Filtering-Correlation-Id: 37d13749-aa9d-4a39-4cc1-08dad2e2beb9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tY9HgM4JCPOR1N0nXWt1WR+XJ+PA4tZzXQvhve+S1FqGf7mTSINE3B6hxaDRRuB5b25bRHudw0HgCufNihtTj5A+i9usJ2kbXFmHshj/PkCSpqeKdm2Tf5RXm5ADgnA8TE2lXFXqnH8z2zzeY+Ikthrmr6hz/g3RiBFbOmfW3SY50r4Hmin48VRLRsupll08bz04ByE3BGrjmsJWsELAapVzH/L3uNSNAn6DYPiPjyemJ8BU2IZaxmyYa2Niq0rWTy5CBIbIFR4zYgeDsn0IheifNq8QaWLD3i36zFj3+5UNwoY7nbHCIiaSH9MPmG7TR+HzFlhrXIPsGd7L6jEYxAGVnipWhq1EIfyWPDHxiqC8Si1X9bt/T+gEVmxqTZtJFScCLuPwuYDnrEDHxPbQaPnS0ZPwjw495ZFUrCefZu3452grrNjmduQXl5DZNyDr1Y3sI8feV0kqnNEqJh8FlxKJn5ykKxTTpVJEJ+zYkMMVn95WqKBkq+vT7/I9r6mr8yra26OPH5h2cDtrq/t4g7g9xrlYEvf61u71AeaQbfq3mY4RcRaPQkvjwQWrX61RA+a52cBCNGxm+/bgqRc8VSRvNUajlSlubnYtGciHGN6g+nlfacgZPHejHDXKpDTN84SPX1FQOd16X7PlwsTN+L60IRlYctstNIE2coiAyBiB6o6C22PgRJ9EoMzb9vFO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB4544.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39840400004)(346002)(136003)(396003)(376002)(366004)(451199015)(52116002)(478600001)(66556008)(36756003)(6486002)(26005)(38100700002)(38350700002)(6666004)(6506007)(66476007)(41300700001)(8676002)(66946007)(86362001)(4326008)(316002)(44832011)(4744005)(54906003)(7416002)(5660300002)(8936002)(6512007)(2616005)(186003)(1076003)(107886003)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gez6u7kgTqk4Vy8cAJ36oieZNWiyqFHw2LLKNmsg/RS73nXkzlGVUrGSRMnmFNc2QViwv14SrxzCVeYsoDIJSxjHMx5h1yaSzV/NsMk3OLHROnA8hja1b9wPDQ+Y9cnYnEG55sTBfUCT0U1JJTsmTElrz+dQFQsE8kO6Cm2yh2FVxF9GuLxC6aLQBW3TdntOPIvoHj5xj4j7kgVoKhJGdOk+hOdRfEH3oYWZXSdlxzeDF78jlGG+49vvOv/iYKoQX8Sc4Sjkp54sxyLhjpGDplJuOUylaPBhIJ4/xBt+YaXgqsIK9tH3dyvUesWiGqJM/nOgq/PGqbwWXuZIxC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UHqBbksRgibzFke4oJE/N9LVTMO5MSj8+lDLTtZ6mmmPPO82AIeql1GuM3ZLV5RXg/+bros5BDz72RBuI9xW1HsxGjb35MbX0LX/cW39pwHZnrSvK/JRrz+i2t9Fr4spEyfwYHBf7b+bwVseIYiGSyJyE2taCKANDpDyLf7++smdg+F0LUGYRcInFdDv4km8rjiGlS3hJiFempFPmcYknhT3YraHLw8tQ== X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 37d13749-aa9d-4a39-4cc1-08dad2e2beb9 X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2022 14:54:13.3884 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hM0nUcQpI7z/Tl/h7Lwmw6tCWfLX5ngCx9I51CRP5q9+6yCIpWNJwbWUsH6zYu3mRpJt1BwubkT2HlMDD2BTdE57OShaG7oDvtBSQ4Kk2E4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5977 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750933555584716485?= X-GMAIL-MSGID: =?utf-8?q?1750933555584716485?= |
Series |
add ti tmag5273 driver
|
|
Commit Message
Gerald Loacker
Nov. 30, 2022, 2:53 p.m. UTC
Add struct for iio type arrays such as IIO_AVAIL_LIST which can be used instead of int arrays. Signed-off-by: Gerald Loacker <gerald.loacker@wolfvision.net> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- Changes in v5: - no changes Changes in v4: - Add only struct for IIO_VAL_INT_PLUS_MICRO iio type. include/linux/iio/iio.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index f0ec8a5e5a7a..e5101bef50c5 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h @@ -381,6 +381,11 @@ s64 iio_get_time_ns(const struct iio_dev *indio_dev); #define INDIO_MAX_RAW_ELEMENTS 4 +struct iio_val_int_plus_micro { + int integer; + int micro; +}; + struct iio_trigger; /* forward declaration */ /**