From patchwork Mon Sep 25 10:40:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harinath Nampally X-Patchwork-Id: 9969649 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 04BD860365 for ; Mon, 25 Sep 2017 10:41:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED7E528B87 for ; Mon, 25 Sep 2017 10:41:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E20F728B7C; Mon, 25 Sep 2017 10:41:18 +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 92BBD28B73 for ; Mon, 25 Sep 2017 10:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934575AbdIYKkw (ORCPT ); Mon, 25 Sep 2017 06:40:52 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36949 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934583AbdIYKkN (ORCPT ); Mon, 25 Sep 2017 06:40:13 -0400 Received: by mail-oi0-f66.google.com with SMTP id h9so3486548oia.4; Mon, 25 Sep 2017 03:40:13 -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=Cr8hw8V1AbzdvusvIUiWyfQWfVk7lNoDXMAmp5KWQWQ=; b=XhzeJ3pVJFTTi5dekHm4dAUiNrqysVBzLXsoeOZQnN7XFDUXS8zbX3ptLMkURJ6+aX gDFv0UwEJUUdpWenV9ggiAkNBEeP0WRCQp6YlQIQyWo5TVxGOPo2U2JZcN1ZlLhEN3Yy yqsO4AuIcOAiNGFyr1533IN6SYBeKBxaGpPZpxajnsYnGPi/2DhwltooRRlPzVKZofqs rqlf2tW+eZAlsv/hD8nMmX/6snd8QkWBBQDlBb92xCxyI8GOKTAUL//3z67X35Sb4vXi zISk1ja5uqAeKNo7yp7hpzFhbF38M60egmXKI9Wdh4M2mNVZegJgyFKeDa0/OQ9gFCwc ioVg== 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=Cr8hw8V1AbzdvusvIUiWyfQWfVk7lNoDXMAmp5KWQWQ=; b=Y4HXan4G8GFKYCeZ3lNdM2wYagBMnWQ6ixWa4XAtgcut49QqNlPi1TKf6TFCVikB+y QwqV4iWLbjHH+Dqv5imJBqsvJHFc5mfwxYz03jjcCjM3xOnoCicdbOA2pAJsvOkazUHI 1qIQp9qflB/vZC/7P2F7Z9T74IPdO116aoYbGzIeddQ3xO1cDfrM4H9UsRblFl0K2oRY cgrPhxxYx8BE79ETJPB4+4XgoGeut9C9Wx5rylgmDyzaVp/h8FU8sALeL1MVcXJLOlvo 0HTUBBy1gOHB2boAYcUlY/TFOAz5vsPRrYuET90dIqaQvnQZXKNl71wabTpdeBrK71PV 90PQ== X-Gm-Message-State: AHPjjUiheyDjL98ghAN6WL2PKH8/eaULpDvHoyWLiB6yHiJW1nnQr0a4 Zhxcy3y5zqQSjsu7WBlg8lQ= X-Google-Smtp-Source: AOwi7QB38LYwvUbBsNkl3MWOm3UCrLKyuPeW6AuccFo+i1Ox4rvfhwpsnyrgo6Pbc8w6+uuNTzq0sw== X-Received: by 10.157.66.145 with SMTP id r17mr43653ote.1.1506336012814; Mon, 25 Sep 2017 03:40:12 -0700 (PDT) Received: from hary-Aspire-X3400G.Belkin ([97.70.80.173]) by smtp.googlemail.com with ESMTPSA id l17sm114750ote.74.2017.09.25.03.40.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Sep 2017 03:40:11 -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 v3 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names. Date: Mon, 25 Sep 2017 06:40:06 -0400 Message-Id: <1506336008-4480-2-git-send-email-harinath922@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506336008-4480-1-git-send-email-harinath922@gmail.com> References: <1506336008-4480-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 Improves code readability, no impact on functionality. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 6194169..3472e7e 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/mma8452.c @@ -135,7 +135,7 @@ struct mma8452_event_regs { u8 ev_count; }; -static const struct mma8452_event_regs ev_regs_accel_falling = { +static const struct mma8452_event_regs ff_mt_ev_regs = { .ev_cfg = MMA8452_FF_MT_CFG, .ev_cfg_ele = MMA8452_FF_MT_CFG_ELE, .ev_cfg_chan_shift = MMA8452_FF_MT_CHAN_SHIFT, @@ -145,7 +145,7 @@ static const struct mma8452_event_regs ev_regs_accel_falling = { .ev_count = MMA8452_FF_MT_COUNT }; -static const struct mma8452_event_regs ev_regs_accel_rising = { +static const struct mma8452_event_regs trans_ev_regs = { .ev_cfg = MMA8452_TRANSIENT_CFG, .ev_cfg_ele = MMA8452_TRANSIENT_CFG_ELE, .ev_cfg_chan_shift = MMA8452_TRANSIENT_CHAN_SHIFT, @@ -777,12 +777,12 @@ static int mma8452_get_event_regs(struct mma8452_data *data, & MMA8452_INT_TRANS) && (data->chip_info->enabled_events & MMA8452_INT_TRANS)) - *ev_reg = &ev_regs_accel_rising; + *ev_reg = &trans_ev_regs; else - *ev_reg = &ev_regs_accel_falling; + *ev_reg = &ff_mt_ev_regs; return 0; case IIO_EV_DIR_FALLING: - *ev_reg = &ev_regs_accel_falling; + *ev_reg = &ff_mt_ev_regs; return 0; default: return -EINVAL;