Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5875449ioo; Wed, 1 Jun 2022 14:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlhyPfgDJy/sLa892XAeM5+zA9R9ruX2dPzLaj3x75pf+D+sbZhRM2YulyuvulhUsfbQ8D X-Received: by 2002:a05:6a00:1acb:b0:518:99c4:aa2e with SMTP id f11-20020a056a001acb00b0051899c4aa2emr1544794pfv.25.1654119715732; Wed, 01 Jun 2022 14:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119715; cv=none; d=google.com; s=arc-20160816; b=Dgk6QKLos/K72/y7xPpDSPwtU3N2fMvI5kamvg07heaNzIOmVSsrptFlC8o/LXfWrl bYievQGyuo7A1rirfBqgJpdi8DYx6lGYuD/8S5PCJWMM4P/M/PadOz+Y3b8MgoydxuBu tsZYGeXzBZdv30FbZqHJAbxYh+en1ISjzsAtMYAM/WuuSPu2fnCnu9rLD30RQrv/aT4X rcF48f+EhfzcduFHzBlHVV66Yr3QJNpPSgp75hBFbxQyMGTjS3AlCsErTRFNZyYfUcbu Hy16boG8k146GzPOL0MPAnQoRUfotXUo2oMfLaZm3fLQacMuHUPxtukohAjgK9iAOVyM BVrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=knVaomDMh+qFdTKX0RVE5ZaCevAlfmtvTfDnaO4g8Ak=; b=cmtTeRVW0icAPqumK7Pp0WaThEydDmAMdpgoo1Gpyl93PD8gBBQ6fv5eHtGiabRg9Z LgIXIIox9Gcu8UGRfMDyoKdcZV1Bn4RqP8BcPmv8NLE1mv/WUxjOZGGou7lmEtd+dn1L FZ21FwDY0mDQbjiiuF7xyC0+TiAQ00LQIFBsj1xz0gCMGWeCJhw14wkviEcTwEFsivAI fog3fsb2wNzR0GFbdA67dYl+vM/s3tQxBv7kKvSLJmzfOve4D24fvtn/UF5eopgSh50e 6bR4jzU/y0EU2/CqAFcieUQKodYkE5npO9nIEyT5EpLgMiWOXjYVN4uZXywbrt9/X+rA Eklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gmgABx2U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l3-20020a17090b078300b001e4d7db3de0si3932512pjz.51.2022.06.01.14.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gmgABx2U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61CFB20EEB4; Wed, 1 Jun 2022 13:53:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbiFAUx0 (ORCPT + 99 others); Wed, 1 Jun 2022 16:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbiFAUxY (ORCPT ); Wed, 1 Jun 2022 16:53:24 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F204C65E4; Wed, 1 Jun 2022 13:53:22 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id br33so557694qkb.0; Wed, 01 Jun 2022 13:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=knVaomDMh+qFdTKX0RVE5ZaCevAlfmtvTfDnaO4g8Ak=; b=gmgABx2UT8bqUDlWil7waiFllyAu5qUs8xeg3ucfwQ2a2tZO33QB4CcX2tlDz7UaXt jV39OQ2FBhhva1oiNIWmEmY86LpPudUTfWTzr/8qYZIcvixaEzjG6MvaosB4pZeZkcnm cnfhEXjbBHAaxQaTBwozroM7xFkHuWYg/JbqlN3NCsb3uUCjrWbDcARKSWxySWkLhNFn fJMwTvZvWtnIVSmCZ9CRga12CvH2BUje9Qe53ne/NM5FczR/kk/Sn1l/mOGHUDLAUVCi DV0RVEW98iJ5Rfo6h/aWGkOSf8TOYC24C6OpLMVi083biplKDDhrkUzhyMhDAO49EGEE 4LDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=knVaomDMh+qFdTKX0RVE5ZaCevAlfmtvTfDnaO4g8Ak=; b=J1yikAe6/aB0TBIM0pZhAlwCOSWcfTrun+7zYmwqTC2CeFN9uO9/t09+gIAOBO6tQu C9PCfRm7gDagl9Drw7+iaOOSqCSEOKXdKsbHNOAvZ5SHrTAm5djwU/5yNj54FMLNrEf2 UWvmU6PSE2F6rcZ1uSH7yht8pWb7Ws4UEINycFANZIQ/uDjOXgPuuxIbVoxdkilamxmM yKBqnHmloBX6Lq7T9wyNzUsyLX1ZSknAqwxCVLvpC5jf9Jyku+Yu1gwfo6bFE/anTpS0 e5dTRK0CbuUk+xzRVvuHrdApbuwns4+W9gm8pqR8kQjmhnozyxwUqvCdL+27hgqBy9zH w67g== X-Gm-Message-State: AOAM532fRP7BacjOmEvQZMIH7b+tM3qsCYKMXhCrk90YEEk6BoGl/efV IfHNq/R5l397aKO686wuse40OANViBQIRQ== X-Received: by 2002:a05:622a:1baa:b0:303:6049:8aeb with SMTP id bp42-20020a05622a1baa00b0030360498aebmr1035126qtb.10.1654109878714; Wed, 01 Jun 2022 11:57:58 -0700 (PDT) Received: from spruce (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id g27-20020a05620a109b00b006a34bdb0c36sm1747850qkk.31.2022.06.01.11.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:57:58 -0700 (PDT) Date: Wed, 1 Jun 2022 14:57:56 -0400 From: Joe Simmons-Talbott To: Andy Shevchenko Cc: Jonathan Cameron , linux-iio , Linux Kernel Mailing List , Joe Perches Subject: Re: [PATCH v2] iio: Use octal permissions and DEVICE_ATTR_{RO,RW}. Message-ID: References: <20220531181016.76007-1-joetalbott@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jun 01, 2022 at 12:01:12PM +0200, Andy Shevchenko wrote: > On Tue, May 31, 2022 at 9:40 PM Joe Simmons-Talbott > wrote: > > > > As reported by checkpatch.pl. Where possible use DEVICE_ATTR_RO and > > DEVICE_ATTR_RO() > > > DEVICE_ATTR_RW. Change function names to be _show() for read and > > DEVICE_ATTR_RW() > > > _store() for write. > > ... > > > static struct device_attribute dev_attr_length_ro = __ATTR(length, > > + 0444, length_show, NULL); > > > static struct device_attribute dev_attr_watermark_ro = __ATTR(watermark, > > + 0444, watermark_show, NULL); > > Why not __ATTR_RO() here? Thank you for reviewing. An updated v3 patch has been sent. Thanks, Joe > > -- > With Best Regards, > Andy Shevchenko