From patchwork Mon Oct 15 00:27:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10640985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84CB7933 for ; Mon, 15 Oct 2018 00:27:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74B422899F for ; Mon, 15 Oct 2018 00:27:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68C65296FF; Mon, 15 Oct 2018 00:27:11 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 F217E2899F for ; Mon, 15 Oct 2018 00:27:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727061AbeJOIJ6 (ORCPT ); Mon, 15 Oct 2018 04:09:58 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45219 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbeJOIJ5 (ORCPT ); Mon, 15 Oct 2018 04:09:57 -0400 Received: by mail-pl1-f194.google.com with SMTP id y15-v6so8392804plr.12 for ; Sun, 14 Oct 2018 17:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martingkelly-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xxDQxCoic1paVw1IRREuJWTCkCs+jhUXbES92X5q4Uw=; b=ZWo/Q8iomJgje6uKCCpJyl5hzjhYe7NhriutBW59hUWhvjrpsuUCy1qR4/JV4AZEE6 Dribo5JriF/xDbskQKcMxHEhhyPAM0igHuZ5Wsv/nHIT70ZgJE/o9Kf3pRqnPXgNdlfI zYG2jeTJTUx1160V811eJC4bLopSP67BhzHz4OnCLuipPyAZwtWBXOjnLWevIBpUuDH4 dYDGoOBkQSH34fxO1YTYTMniJdBBpe3FcBr+tybebMKjBtX6xjMvWFtEnIYnHwvGKvRz v+lm7dGBAJHZZ5Tz3U+4Xgs4x9iZRz+EFJr1lvq9iipOGADDHkf4FuzSM82PsAYvBi1Q YrXg== 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; bh=xxDQxCoic1paVw1IRREuJWTCkCs+jhUXbES92X5q4Uw=; b=Yn1tJl2HM/dQLKAzsdbI0/WLCUTvp7ucmGNYg38iLibPn7aLrhjWIF2TJC4Z0wzL8A bigxlr5Qa4DDjohX0+R/5Pxcrd3K7eCDa61CV4iRTigbujBkjLtVEYyrc/5Wvre/mclc ji+AuWPRvN6lF3iXOyzwz7kj1I6369BlGZT0d5LzLiQbH1GEFwQgy/01OQaytZP/g+70 pIIvNMq1Lbdovg39YjM7xu3gBUXTsLqEU0/JXC9BA3PqThF4+KARuzWkgI9UR1DFKZ7f kTABWxmGiL52VqU7d2CoreacGXBv4AMsipN3b8MwVg/+K6DAEorQOfiNHhB29fd2w3aA iRrQ== X-Gm-Message-State: ABuFfojOmgX9r2J8CiK79n6yPZvJapMBJ/1DHt6piFQzp1TTaMbOPMG9 rGQooiTEFh8SHa6VZPq7OhBa66f4wvg= X-Google-Smtp-Source: ACcGV62+nHACYHG3jO/Ug82rtnEqlrY+FKPUjNXgAtemkM2hIQivEOzmyGdfaH3Jrwjv2NEIW3JcFw== X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr14650459plb.219.1539563228504; Sun, 14 Oct 2018 17:27:08 -0700 (PDT) Received: from cascade.Home (71-212-17-184.tukw.qwest.net. [71.212.17.184]) by smtp.gmail.com with ESMTPSA id m18-v6sm11178115pfk.149.2018.10.14.17.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Oct 2018 17:27:07 -0700 (PDT) From: Martin Kelly X-Google-Original-From: Martin Kelly , Lars-Peter Clausen , Peter Meerwald-Stadler , Martin Kelly Subject: [PATCH] iio: st_sensors: miscellaneous cleanup Date: Sun, 14 Oct 2018 17:27:05 -0700 Message-Id: <20181015002705.19748-1-martin@martingkelly.com> X-Mailer: git-send-email 2.11.0 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 From: Martin Kelly Miscellaneous cleanup to fix minor consistency, grammar, and spelling issues. Signed-off-by: Martin Kelly --- drivers/iio/common/st_sensors/st_sensors_core.c | 4 ++-- drivers/iio/common/st_sensors/st_sensors_trigger.c | 4 ++-- drivers/iio/magnetometer/st_magn_core.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/iio/common/st_sensors/st_sensors_core.c b/drivers/iio/common/st_sensors/st_sensors_core.c index 26fbd1bd9413..82882bc505f5 100644 --- a/drivers/iio/common/st_sensors/st_sensors_core.c +++ b/drivers/iio/common/st_sensors/st_sensors_core.c @@ -133,7 +133,7 @@ static int st_sensors_match_fs(struct st_sensor_settings *sensor_settings, for (i = 0; i < ST_SENSORS_FULLSCALE_AVL_MAX; i++) { if (sensor_settings->fs.fs_avl[i].num == 0) - goto st_sensors_match_odr_error; + goto st_sensors_match_fs_error; if (sensor_settings->fs.fs_avl[i].num == fs) { *index_fs_avl = i; @@ -142,7 +142,7 @@ static int st_sensors_match_fs(struct st_sensor_settings *sensor_settings, } } -st_sensors_match_odr_error: +st_sensors_match_fs_error: return ret; } diff --git a/drivers/iio/common/st_sensors/st_sensors_trigger.c b/drivers/iio/common/st_sensors/st_sensors_trigger.c index fdcc5a891958..224596b0e189 100644 --- a/drivers/iio/common/st_sensors/st_sensors_trigger.c +++ b/drivers/iio/common/st_sensors/st_sensors_trigger.c @@ -104,7 +104,7 @@ static irqreturn_t st_sensors_irq_thread(int irq, void *p) return IRQ_HANDLED; /* - * If we are using egde IRQs, new samples arrived while processing + * If we are using edge IRQs, new samples arrived while processing * the IRQ and those may be missed unless we pick them here, so poll * again. If the sensor delivery frequency is very high, this thread * turns into a polled loop handler. @@ -148,7 +148,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, if (!sdata->sensor_settings->drdy_irq.addr_ihl) { dev_err(&indio_dev->dev, "falling/low specified for IRQ " - "but hardware only support rising/high: " + "but hardware supports only rising/high: " "will request rising/high\n"); if (irq_trig == IRQF_TRIGGER_FALLING) irq_trig = IRQF_TRIGGER_RISING; diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 72f6d1335a04..880c11c7f1cb 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -29,9 +29,9 @@ #define ST_MAGN_NUMBER_DATA_CHANNELS 3 /* DEFAULT VALUE FOR SENSORS */ -#define ST_MAGN_DEFAULT_OUT_X_H_ADDR 0X03 -#define ST_MAGN_DEFAULT_OUT_Y_H_ADDR 0X07 -#define ST_MAGN_DEFAULT_OUT_Z_H_ADDR 0X05 +#define ST_MAGN_DEFAULT_OUT_X_H_ADDR 0x03 +#define ST_MAGN_DEFAULT_OUT_Y_H_ADDR 0x07 +#define ST_MAGN_DEFAULT_OUT_Z_H_ADDR 0x05 /* FULLSCALE */ #define ST_MAGN_FS_AVL_1300MG 1300