Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34652833rwd; Sun, 9 Jul 2023 17:26:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxOxIWWeMgLCuWHeGyVtGJ8Drq4xqaqUFUTE04DcOZ98RCDi3c+yZY183MdqLAnlRodJXm X-Received: by 2002:a05:6358:3a1b:b0:134:c7ef:406d with SMTP id g27-20020a0563583a1b00b00134c7ef406dmr11532428rwe.31.1688948775857; Sun, 09 Jul 2023 17:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688948775; cv=none; d=google.com; s=arc-20160816; b=J95ewZvKhDx7vif4nViYl2zHLFth4H18CB8yBrC4QGtQMO9ifUNwli4ANma6IfhOUo 1Au0yi2WtxTRNYRtbFeVAcaCDPLTLLS72pVozUEPhgLCRNgmg1hT6bZEi+5/hea5Vb3Y E7q3W1zYRy4Ey/UnKNN8i2Z/AjwG4vacYCh82UchOfZqQ1wuWOxgfUdbCfTpQ7MiVqO4 FYjPmwUXnZYcjEZ4eytTL0/pRhJMPbSxVuKbpVlVQxM0cUCbdP8amzKUjyawXVG555jy DlWxt9n08gC+daD3enMKzv1r0QJ26LLo+scgZAyRdb4Jsie80lPImLnhUNxmrYfMRhiP Bmiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sjoav9DjNTMYdRsPrPB25AzH4TrQH4BWT3WECle+jRw=; fh=38qbmaUiMwN8fBpHvI3yV1WY9sQxTG/4foklS5Sdx3I=; b=uYIf/s+jixJwoDGU9oJI7Q8usVUDoZ1yHTB0aDgDQ0ll5rglvuNfZmlcmP6w3HfMuy qjwkvyKHzIEakRN5CDYUdJXq77bbxHB06fx4ESR5O20FqqS6Koln3NOi6lOsfpVv8sCB iW4fbFuQT63c/Xelu3SbtJR7n5hFMxb7zuCkKjVwfqfmvhkTQ606yjwLXP85RcUuYtQQ JWpNtkq8BC30nIWvwMYMqcFwhtE7Tiiu6QiShvnmcHrVp0VZOQW0duInGZ0BzrcOnfxI aVMz/ysa9iqL/GDjOe8PRrQXhxtvN0FeLHgXYrOqJozCPyEEvMUTrYHjld1if8avFYRU Lctw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mcTOXQ0k; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o26-20020a635a1a000000b005348977b5c5si8200610pgb.97.2023.07.09.17.26.03; Sun, 09 Jul 2023 17:26:15 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=mcTOXQ0k; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjGIXkZ (ORCPT + 99 others); Sun, 9 Jul 2023 19:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjGIXkX (ORCPT ); Sun, 9 Jul 2023 19:40:23 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C10510C; Sun, 9 Jul 2023 16:40:22 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6b9610b8a64so390823a34.3; Sun, 09 Jul 2023 16:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688946021; x=1691538021; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sjoav9DjNTMYdRsPrPB25AzH4TrQH4BWT3WECle+jRw=; b=mcTOXQ0kJMF/RxY420Rp+PHc1ZeChucL/Hg8DVFkpfZ7g9j01qHNJ9GCi5R2i0t4Mh uSMIwBYKj031UZTAX3PtRQ0Ra4uDjEmjNEENROqwgu4TGbV0H3x+mdwnC996LN9PmQZo MSdM1vrll12Z7VoOXccXI68+chOVJfoJYaiLGiHHQKI4s3pTMbcl0F7PdSeDl37jRJ0v WGu5qHDMs+umu6sAjjhp8K9ROlsxvB3OdTOliur1Wzg1r0xMQiRVebzW3VxqmOy13KSG NUYMqAv6mQvrK6Ov/lmogpMOF4WHBcYAgmVHgs7c0eN+cwLuFms7t/IIwDTz6wsVCRoE 4mqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688946021; x=1691538021; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sjoav9DjNTMYdRsPrPB25AzH4TrQH4BWT3WECle+jRw=; b=hY47SuUjxl2PKJWTpMSPNkroWZ3nct3B94Y3l1f0H1KrcHYWzV6RYuIQERCMSYKS8O hJ3qDOu6/pe5BYqFByB+IDlYRfXwjgqkSncmlKIRNXoFTP3fjeZJvbBn3t9PGeKIkRta v4ygjPPOwVFVbAlDXldZ0HKZ+zDYbGbvMOHZoDjNPF59UwP7JfQtBjU05GkbjK6OJ6g5 RjL6FdAjrGW1BNdenHndDPkmlgcmwNz5zZPPPIsh/gWYJwsCW8WVsxFkph++o05Ku56s vIEcJ6GXCS1z1pta+PEVM3uvYg0W91v3INNZgnCgLMctd7cFtjCy2qO9n+qT22kHrpgK BKew== X-Gm-Message-State: ABy/qLZLKY/HPCF/FJBsKhlVyjJ8fqZqf3gmCzRtCe1oCbh5LGh0YjVk 3HIaZj/rh5Vnh7MMQSTMu28= X-Received: by 2002:a05:6871:88a:b0:1b0:5e21:29a7 with SMTP id r10-20020a056871088a00b001b05e2129a7mr12955811oaq.10.1688946021138; Sun, 09 Jul 2023 16:40:21 -0700 (PDT) Received: from [192.168.86.31] (99-145-207-128.lightspeed.austtx.sbcglobal.net. [99.145.207.128]) by smtp.gmail.com with ESMTPSA id v19-20020a056870e49300b0019ea8771fb0sm3877233oag.13.2023.07.09.16.40.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jul 2023 16:40:20 -0700 (PDT) Message-ID: <52f47b43-e735-0be9-ebac-e6e099a2dd09@gmail.com> Date: Sun, 9 Jul 2023 18:40:20 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] Add struct ad9832_platform_data to the include/linux/iio Content-Language: en-US To: Jonathan Cameron , Greg Kroah-Hartman , Michael Hennerich , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Lars-Peter Clausen , linux-staging@lists.linux.dev, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com References: <20230707211553.GA110890@madhu-kernel> <2023070858-brewing-outpour-764c@gregkh> <20230708154506.01785c65@jic23-huawei> From: Madhumitha Prabakaran In-Reply-To: <20230708154506.01785c65@jic23-huawei> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/8/23 09:45, Jonathan Cameron wrote: > On Sat, 8 Jul 2023 13:10:29 +0200 > Greg Kroah-Hartman wrote: > >> On Fri, Jul 07, 2023 at 04:15:53PM -0500, Madhumitha Prabakaran wrote: >>> Add struct ad9832_platform_data to the include/linux/iio >>> for maintaining code organization and clarity. >>> >>> Signed-off-by: Madhumitha Prabakaran >>> --- >>> drivers/staging/iio/frequency/ad9832.c | 3 +-- >>> drivers/staging/iio/frequency/ad9832.h | 34 -------------------------- >>> include/linux/iio/frequency/ad9832.h | 30 +++++++++++++++++++++++ >> No, not yet, sorry. Staging drivers should be self-contained, why does >> this .c file need a .h file at all anyway? It should all just be in the >> .c file, can you do that instead? > This is an aged driver so still has definitions that would be included > from board files, hence the header. > > So Madhumitha, if you are looking at getting this driver out of staging > (which would be great!) then first job is convert it from platform data > to device tree (or better yet generic firmware bindings using linux/property.h) Sure, I will take a look and work on convert it from platform data to generic firmware bindings. > A side effect of that is the header would go away as equivalent job would be > done by the dt-bindings yaml file. > > Jonathan > >> thanks, >> >> greg k-h