Message ID | 20221129064540.3218982-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 q4csp168036wrr; Mon, 28 Nov 2022 22:47:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/rGFksglWqoFa/pnPK6ftKxxuEXZdkCabBatR+DKOdvkZxmhhtiW+3avW8bDq1edabYdD X-Received: by 2002:a17:90a:4147:b0:214:2214:869e with SMTP id m7-20020a17090a414700b002142214869emr66249908pjg.76.1669704458016; Mon, 28 Nov 2022 22:47:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669704458; cv=pass; d=google.com; s=arc-20160816; b=yImb+67mCdBsqdhKwDmYYDJamvm/bg554662TXNloEQYEhWT1qaOWIFfTcsaEXXHWU t9dSij4KUxX14v9em9W29QcRt71MNcK8v0PzljCwO9YAzdY+KZ87pQi2UAjqJ7a63I29 95O5K7KcDzhHpH6PtSVlMB/Tq7estBGwtasaWchGO83VX2ZDlAQLyaM1+U6ii2OZ1mFf k81AByqk5oY7yDLPmcQAMC2t6Y330hNiAkXG7aGPFLledxfeD5RVNnCDMUJpj6oZVZ2x UZlZicgsbWI75qJ2wI77Ma8T1bkqmfArA0kcxDPPfUv9HSXJGgHjYFvC3PvBR6fUWypY IOHw== 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=JXIVuJRJhG8u0ZCsKopcTrojv3oMYxClgYiutAfHyc4=; b=hgdlvOUMGbA4SSWExhPLNalCt61NJ7xyP9t79djKbqK13WCm/GnQfd/ZQr+wBFzDho OKItnehlPSq7km6Q308YsTn0FKNaXLeL28DOyCmt57pRUo/JUnAGhV6KcjIR3xu06gSO 8rKRm+3IjRRlf7qy1NSVq41XYHB4nVs3wzXw/NKlCWVHdQaJp0MZAc+zppJ17+Yo14/j JD6fql3HaQJi4Ch+VOSg2WBvGYT9Ffa1zTSGdivNHz+8c2ikBtnfuwMqeczz3eakKtm7 FqGUCwQhemXbQpjVxBLOoHT87BwXFruQG0qeV/NS+P5iMvZKQP/wPKX5TqBAcqO9S94M I92w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=ZIXFi8Md; 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 192-20020a6301c9000000b004701ea564desi15464295pgb.783.2022.11.28.22.47.25; Mon, 28 Nov 2022 22:47:37 -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=ZIXFi8Md; 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 S229642AbiK2GqH (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Tue, 29 Nov 2022 01:46:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbiK2Gp7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Nov 2022 01:45:59 -0500 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2087.outbound.protection.outlook.com [40.107.14.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3954286EE; Mon, 28 Nov 2022 22:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+M/Yh2gO2aQS8TH1rv7aZv09V78PZTGndPGM3SnbiBunfiRyeoi5+Fdr86THw295p1AXDoVa5l2tYwG1o2p53RhSmSzACDpRg3lwSgUXqo2tNSw6moGK82amY6e9a/xUXKbL9tWJyStlVduQ/fuHPeJlEcjaP1w1wS4KhWzHrbOHcQYjsgd+snfQvzEBLjEANDwKRSOoYt3vjgkukc/6tzNyTfDu8sRkJbwH4pGjAzhSngBSq5lg1jXyqiqYGofVq3+nZK6t9QnRA1zt3B+xX8Jo5r5zPHlPiCrBeAg0wqYVVH3esv/vMqS2Bgd0G/5n6ADyIVoH2yA+xG04rd6gw== 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=JXIVuJRJhG8u0ZCsKopcTrojv3oMYxClgYiutAfHyc4=; b=oCmH2rYlnFu6mBL+pMAfOT+i9g5u4UfKXO0B0OVTX93w44AyBhKZWhKQ+8YGIwJhRdejOANpQy5ViT0w4GPEfqCiL+1B27T/Hk9Pznqov4uIVD3taCs/W+eyqr8LkoUfdBpnqBpPYA3nFTXWQvnr15ARA4YzNlzP/dK8UVE/K68nGEgvcT6r/xFo7EYViHTJGyyNqBl9a+VW1J+BWCCQoRlbn+OIxVuVtlyhZ10KGds8278TELw98M3kSaDCj0zseEUW0mBinpKZ7uHCqBP6uP2hWeFKeIo8IXVOsSsxEubiX1ZiPA+RP+Pw6o5dTQUBIdA6j7k4/J6Alsc4KFrx8w== 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=JXIVuJRJhG8u0ZCsKopcTrojv3oMYxClgYiutAfHyc4=; b=ZIXFi8MdyT72tv7qlb3HdnL0wtjkS4vQImaIq+KiF0rjFCK7hghAF20lDJdiY87uvftcuYg1DMApDoX3zWUkko22O+UOhmsclC2hDeQrn9ZgWg4+qk5XjrNEWxpf7yLalrcN84ZHa1ikhFi5HLFOXbpSUBwecppwVnXf6oyOBwE= 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 AS4PR08MB7685.eurprd08.prod.outlook.com (2603:10a6:20b:504::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Tue, 29 Nov 2022 06:45:56 +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; Tue, 29 Nov 2022 06:45:56 +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 v4 1/3] iio: add struct declaration for iio types Date: Tue, 29 Nov 2022 07:45:38 +0100 Message-Id: <20221129064540.3218982-2-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221129064540.3218982-1-gerald.loacker@wolfvision.net> References: <20221129064540.3218982-1-gerald.loacker@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR10CA0107.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:28::36) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|AS4PR08MB7685:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c704da6-9068-4d7b-9f22-08dad1d55e45 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KWi4O3/RzXJ9LZb3kja6TUSCemPS9yJA4m02NPvUj28O0b1dY9y3QKPQXTB9DTn6OzTBNg86COiyr6MyRSpzR4HDLoQcYTmy8nfgc+XMWOFO1EozQFY1/RlWuYYSSTaHmYQXIon9kbNFLW7mZHx+hrLmQdKTt6JAqKia+U1AwtCgykUZUixcXfkOL7qQxYVGw2obBTXEdHcMAJYOthIA8zVvWAuRF8agerWU2QlqY2wZMYA4l3EVFr65c4g8VsVMkFdXuTfBffP5UZzRFCPTm0fE9VgTP/2iDY7P2GgTNbeSmC/uewhqv+5zunL1obvM1oiq9ikr6GTpCl45oZofgcW8deSHoOvoSpph12k678Kr1FAA00fwxB3pVVq4c2sV+nb3FX/jZAP3QWiK37SvTpQqzrIo3qQkY+nyLBA5nSl86vdEObNijxug9QZfn0bnYnUNjWpkrfsTc/7fTR4yj76zUmwMh62chlFmuQjm02A65i7lhjDchayykEZsb97jJpxYsz/lHIAS+r6CRen7z5mpQdtzgw7DmVavV6SJlP3W6M8UWj6qt2ke25YgIRdhbelW58tfhbtJN08Lw1fgn84cdDFrl4m6F4Tfeq/DebTFV+oYetWyouqOH9PiF8QOXbrsSNSg7YWQUXoNqt3Lx3DO50FAUADjyl3aSDyZjWPSQJAFxOGHcsdXJmLvchl0fDf6sYAiT8TWrJv1SqCnIg== 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)(366004)(376002)(136003)(346002)(39850400004)(396003)(451199015)(6506007)(6486002)(86362001)(52116002)(478600001)(107886003)(6666004)(36756003)(26005)(316002)(2616005)(41300700001)(8936002)(6512007)(1076003)(54906003)(4744005)(5660300002)(7416002)(44832011)(38350700002)(38100700002)(2906002)(66946007)(66556008)(4326008)(66476007)(8676002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X9c8GiOzzAS20shZaVe+6cVLX+iLkOkow2b6nTFagqL2ns7yr66eRSE43vyUEYOdMlsWMhOV0mPDiYsRVXQ1jtA5s8pV7qipB/sEjJJFXBVzbz1GYmQDHQVhFXJNyxFXCXirM70MDTXndaWcxmffRetH8lwhXuQHha4VditJTecqS5WmZkRtdBVDht5yNWlWDod6zWA5K42WkwYc07UYYA3/SDyE/PJbnG3j7eWJ3EQ669OQ+fFArNyNSrdb1rtrF3D+mLc+tBZ1Nw2NR0Ui4Te05EGFTZM1rIEum/Y8WYk8LOLOm+yXYO9+PPJ/naaQ4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NeirfX+CG2W8gXOEJraNJdAEEWgBEUUKV6d9Kt1H8PwTcq7fMurmEdneBELuOYKRvbNYqf/4PXzfBpmKCdqhd7p0qGgusUWW+rbVJeeD4diLgocxbYdxNd6H73WegEbUoOVY6UMnkKGoJ6xnXtj8y6HR6CJYrWHV16VY5jir68get7i6tMQDXBHZHkb51c6ii2Fcpfi2u3rM/yuP1YXFk67+1lQ== X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 8c704da6-9068-4d7b-9f22-08dad1d55e45 X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 06:45:56.7769 (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: cIjKufc3gpTv+M8SfsSmEPOojaZZOozks26AOCN9r64DK95D/3NYvuyrtzOd59YwBXAKQJCJOk2xqV2ELj2i3ugP8arikKDFJOP7c+hT10k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7685 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?1750812021775628847?= X-GMAIL-MSGID: =?utf-8?q?1750812021775628847?= |
Series |
add ti tmag5273 driver
|
|
Commit Message
Gerald Loacker
Nov. 29, 2022, 6:45 a.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>
---
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(+)
Comments
On Tue, Nov 29, 2022 at 07:45:38AM +0100, Gerald Loacker wrote: > Add struct for iio type arrays such as IIO_AVAIL_LIST which can be used > instead of int arrays. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Signed-off-by: Gerald Loacker <gerald.loacker@wolfvision.net> > --- > 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 */ > > /** > -- > 2.37.2 >
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 */ /**