From patchwork Sat Sep 23 20:56:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harinath Nampally X-Patchwork-Id: 9967635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 56891604D3 for ; Sat, 23 Sep 2017 20:56:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4920028AD4 for ; Sat, 23 Sep 2017 20:56:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DFE7290DA; Sat, 23 Sep 2017 20:56:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C17952909D for ; Sat, 23 Sep 2017 20:56:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751683AbdIWU4j (ORCPT ); Sat, 23 Sep 2017 16:56:39 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33570 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002AbdIWU4h (ORCPT ); Sat, 23 Sep 2017 16:56:37 -0400 Received: by mail-oi0-f67.google.com with SMTP id z73so1498848oia.0; Sat, 23 Sep 2017 13:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z8bWmXLGkNjkkpSXdSJ/5jbencNS+vloJf1eZT4KpO4=; b=bY321gpY9bEKbaZvYnb7zdurm+6hxYi0u4DlGLJXEKYuc+zqOxjrslf3DRaNeqW3KS 4fBM7IdegQZGn4V1K0+BpBSnW/WVtqhoqb2pjaK73PGU3zOZDdrYqgOTqI+JwpooMMfM h40nv8jk2qjpHPFECgD1nlfQTCLMOIjjMx/O9Liyjz+87+UBchVKBQdnMc+B7K19AMYp JO1kZmjfr/eKw8+ijK4+v1TtvOxeUPnk0ze7TvIZmcD7EtLmObN3laW0V9PQWCIsfVqm jwDW79UshRmhxknnYHrcRFjLerYJu1pTjYiJmtYQ7OwfvmFvS3m8sVR1wDfhZSvmLhuA fEgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z8bWmXLGkNjkkpSXdSJ/5jbencNS+vloJf1eZT4KpO4=; b=VEWzC6C/z08qt1W+HW3Xv5xCDPkzZmps9rCVxe2edJEGxRiP91e8YvKvd5DlpOqWrU PO5dFuwja4WWRVwniu2pBjPSsUYY2pHGHAsBtqkALMiCHr8Ovup96X65lrn86+eSAsoP zqfeUbTgyVHDC2RROJDe8+qTSpfBi+poov/YQa0lj8fr4/tFLHik6sP/k7YjzvthyVi1 mx0QmvW+bnZgSDClOwHs4lQm46qk33qu4LexJAsZ/jEVs0j33vDnD6oJzbKKG8NTjdHX 4NcgbKjqgMJbDE3Qs+g3zRbv8wy8dxJ8Hb4WnaCoqth4I8A+JsDmrGXsjVowbPx5M/vX O/yA== X-Gm-Message-State: AHPjjUjzne6iRVmI2HdkLZLjjb+Amv6BqkZI4P3J+YD8RJv7b6nTmey1 pqV0PA8rBOI3bntzdWZnC1I= X-Google-Smtp-Source: AOwi7QAh6L328+CtOYNya0Wd7O67Zmo1+uP6E7gycRteIK8vosW6bEsyCZ73CenVqmnyfkJKwNCEGw== X-Received: by 10.202.175.150 with SMTP id y144mr3619115oie.47.1506200196928; Sat, 23 Sep 2017 13:56:36 -0700 (PDT) Received: from hary-Aspire-X3400G.Belkin ([97.70.80.173]) by smtp.googlemail.com with ESMTPSA id o206sm2966198oif.26.2017.09.23.13.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Sep 2017 13:56:36 -0700 (PDT) From: Harinath Nampally To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, amsfield22@gmail.com, martink@posteo.de Subject: [PATCH 1/2] iio: accel: mma8452: Fix code style warning Date: Sat, 23 Sep 2017 16:56:29 -0400 Message-Id: <1506200190-11115-2-git-send-email-harinath922@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506200190-11115-1-git-send-email-harinath922@gmail.com> References: <1506200190-11115-1-git-send-email-harinath922@gmail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace symbolic permissions with octal permissions to improve code readability. Issue found by checkpatch. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index c352555..4a33a26 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/mma8452.c @@ -418,11 +418,11 @@ static ssize_t mma8452_show_os_ratio_avail(struct device *dev, } static IIO_DEV_ATTR_SAMP_FREQ_AVAIL(mma8452_show_samp_freq_avail); -static IIO_DEVICE_ATTR(in_accel_scale_available, S_IRUGO, +static IIO_DEVICE_ATTR(in_accel_scale_available, 0444, mma8452_show_scale_avail, NULL, 0); static IIO_DEVICE_ATTR(in_accel_filter_high_pass_3db_frequency_available, - S_IRUGO, mma8452_show_hp_cutoff_avail, NULL, 0); -static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, S_IRUGO, + 0444, mma8452_show_hp_cutoff_avail, NULL, 0); +static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, 0444, mma8452_show_os_ratio_avail, NULL, 0); static int mma8452_get_samp_freq_index(struct mma8452_data *data,