Received: by 10.223.185.116 with SMTP id b49csp1066622wrg; Wed, 21 Feb 2018 11:29:51 -0800 (PST) X-Google-Smtp-Source: AH8x225VCJZN1B/T5MqwpqCZOwmSUKU+xzwcZupbPU8BsO/poPrkMt7IIdzqvJ7nwHMFPJlrGl9g X-Received: by 2002:a17:902:46a:: with SMTP id 97-v6mr4016099ple.96.1519241391123; Wed, 21 Feb 2018 11:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519241391; cv=none; d=google.com; s=arc-20160816; b=DWGaR49cre1tTr3V8IJ4AMnumlKZpglf+bigQEvtb/lkHO6YeUTXDO6H2oL6IkGIhN LWEnwStiU9aAX9Id1uDiavxnJ9U4L7LNYAo0r0ltJyypV49D1Blp4pKVcyFRUeJ+Dayi IGSej3LuOAlX4HcmIqa1rDDcs9ppfGHDbN4XzwWEitevRByt54Vuf1ZYfO5Fg+Khsk6I nwo2/oXYacIYPGDULd5uvI0t3jTqG3EaJLfd7v8rpF/5St9ef981xXlgJXEljgl36oTQ DZwNuZpwChyo+zEZ64r/Uvj8PweuprSUTOteKqnp8LTunXHUXrDoFnFVu6dCMfNgz4wL 3LZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Z++ln5ZCLalxJXBxrZKJ6gdBHZMEl40NqcvD47m8dM0=; b=MM2xvlJhWQ6oeB34c/xuZMuw4u4/bG0xzKGFtUC2dfB1snxKxolyXnNoA7AesTxYfI YM6cIoR+M+XPS6cNIs9JIhX6c8DXwDhwJThNFkV2nW9SJBja3EaLPgezqdXzt0NyhpsB BPNNAWqu8urGFrloct3eLJmcML5TSgb49Hrm3pJpqC0Ag0ow1X6B2cM7cJXk/9qmVh8W XTKmYNcw1+Kop82nBNgbBzKzDRJmqEt9PYDcF0sufXnbqutHNKVCfO0se8eCDQyyWmVt Posi42OrUOnnw3hBaG2t61Bsc0sbSvkyWxUlL9+WDIjr16wpEJzzioMk0ZX+l772Z5/k uCWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aiT1wDMO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j73si1667743pgc.566.2018.02.21.11.29.36; Wed, 21 Feb 2018 11:29:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aiT1wDMO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1751937AbeBUT2O (ORCPT + 99 others); Wed, 21 Feb 2018 14:28:14 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:37453 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751401AbeBUT2M (ORCPT ); Wed, 21 Feb 2018 14:28:12 -0500 Received: by mail-qk0-f195.google.com with SMTP id y137so3446492qka.4; Wed, 21 Feb 2018 11:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Z++ln5ZCLalxJXBxrZKJ6gdBHZMEl40NqcvD47m8dM0=; b=aiT1wDMOm1CZsXaWU4Ac9W9Xkj5cJ8zlWyjNi0o4zYbgunq7h4h+mAuupohbm3ltLS UHhTBSkZJow0PQfOc64uiR92Qjhl8JUPGvt/yI0D41tbCIKX9sB2kvJLi3INVMLUmCf/ e/LlfOWoQsl9xTFDtjNYi5Rj64DrbqSCUAlNbrtSCiSvJBKR3fHFylSq/OfLaeJpjXNF 0D6cW27Pr9tZl1dT5/yP4wGc9Yw4b31+OWRFyVtcB/eQ8H6PAO4VDdQIfJmHryY1z75K g3g0zFR6C4Xa+1iOICX7uYZF/3+gPJgSq54w7n5ZfnTV6rNtJ7AbH4P+chGObYU6er2h IE3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=Z++ln5ZCLalxJXBxrZKJ6gdBHZMEl40NqcvD47m8dM0=; b=gfmuMRbrFq4igSKhI1lseEajKgn4nzEx+GJu0drqG5fjJIwh1JWby0hJpyrNYg1QoU qxSeyFrSiarDVubbWuPbPrf/Av9pccxwWrHh9OB3gjPQXLp8filnS6OGUD0hYzo4wFny JrIzHnsAo2p2Cb2bR3xU6RhbEUmJafCMhHZ+Cf3rb0HniEREKv/LEdWFEuIyGQ2EtXm1 oSG6Oj5c3GjnSAlV2fEOStOLDObKpap2lRWDAd31GYkACRNPXTnWCPuA24noYREjKrN3 fyckn1CgqdBj4/nmbUQ5UIcPBGGwvcM0mRR07c9oOiXTHag3qq0plMF1B7HjQy89JJk4 yXFA== X-Gm-Message-State: APf1xPD9cZlA0ewoJUmwtle7BQefRMZ8jHbPl6YZGUORCXApUD8c0kqK 8bkIxf7hMCsowJgCcC6d97A= X-Received: by 10.55.77.77 with SMTP id a74mr6451180qkb.239.1519241291564; Wed, 21 Feb 2018 11:28:11 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id s39sm19905494qth.10.2018.02.21.11.28.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 11:28:10 -0800 (PST) Date: Wed, 21 Feb 2018 16:28:07 -0300 From: Rodrigo Siqueira To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: daniel.baluta@nxp.com, linux-iio@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] iio:dummy: Replace S_IWUSR by 0200 Message-ID: <20180221192807.qfyhp7z27f6r6p47@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the checkpatch.pl warning: drivers/iio/dummy/iio_dummy_evgen.c:151: WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. ... Signed-off-by: Rodrigo Siqueira --- Changes in v2: - Make the commit message clearer. - Fix just a single part of the code. drivers/iio/dummy/iio_dummy_evgen.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/iio/dummy/iio_dummy_evgen.c b/drivers/iio/dummy/iio_dummy_evgen.c index efd0005f59b4..16ea547f79f0 100644 --- a/drivers/iio/dummy/iio_dummy_evgen.c +++ b/drivers/iio/dummy/iio_dummy_evgen.c @@ -148,16 +148,16 @@ static ssize_t iio_evgen_poke(struct device *dev, return len; } -static IIO_DEVICE_ATTR(poke_ev0, S_IWUSR, NULL, &iio_evgen_poke, 0); -static IIO_DEVICE_ATTR(poke_ev1, S_IWUSR, NULL, &iio_evgen_poke, 1); -static IIO_DEVICE_ATTR(poke_ev2, S_IWUSR, NULL, &iio_evgen_poke, 2); -static IIO_DEVICE_ATTR(poke_ev3, S_IWUSR, NULL, &iio_evgen_poke, 3); -static IIO_DEVICE_ATTR(poke_ev4, S_IWUSR, NULL, &iio_evgen_poke, 4); -static IIO_DEVICE_ATTR(poke_ev5, S_IWUSR, NULL, &iio_evgen_poke, 5); -static IIO_DEVICE_ATTR(poke_ev6, S_IWUSR, NULL, &iio_evgen_poke, 6); -static IIO_DEVICE_ATTR(poke_ev7, S_IWUSR, NULL, &iio_evgen_poke, 7); -static IIO_DEVICE_ATTR(poke_ev8, S_IWUSR, NULL, &iio_evgen_poke, 8); -static IIO_DEVICE_ATTR(poke_ev9, S_IWUSR, NULL, &iio_evgen_poke, 9); +static IIO_DEVICE_ATTR(poke_ev0, 0200, NULL, &iio_evgen_poke, 0); +static IIO_DEVICE_ATTR(poke_ev1, 0200, NULL, &iio_evgen_poke, 1); +static IIO_DEVICE_ATTR(poke_ev2, 0200, NULL, &iio_evgen_poke, 2); +static IIO_DEVICE_ATTR(poke_ev3, 0200, NULL, &iio_evgen_poke, 3); +static IIO_DEVICE_ATTR(poke_ev4, 0200, NULL, &iio_evgen_poke, 4); +static IIO_DEVICE_ATTR(poke_ev5, 0200, NULL, &iio_evgen_poke, 5); +static IIO_DEVICE_ATTR(poke_ev6, 0200, NULL, &iio_evgen_poke, 6); +static IIO_DEVICE_ATTR(poke_ev7, 0200, NULL, &iio_evgen_poke, 7); +static IIO_DEVICE_ATTR(poke_ev8, 0200, NULL, &iio_evgen_poke, 8); +static IIO_DEVICE_ATTR(poke_ev9, 0200, NULL, &iio_evgen_poke, 9); static struct attribute *iio_evgen_attrs[] = { &iio_dev_attr_poke_ev0.dev_attr.attr, -- 2.16.2