From patchwork Tue May 1 17:56:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10374267 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 1621D601C7 for ; Tue, 1 May 2018 17:57:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0631928CF1 for ; Tue, 1 May 2018 17:57:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC88928D21; Tue, 1 May 2018 17:57:09 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 58B6128CF1 for ; Tue, 1 May 2018 17:57:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756360AbeEAR5I (ORCPT ); Tue, 1 May 2018 13:57:08 -0400 Received: from mail-sn1nam01on0080.outbound.protection.outlook.com ([104.47.32.80]:18380 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756353AbeEAR5H (ORCPT ); Tue, 1 May 2018 13:57:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uievolution.onmicrosoft.com; s=selector1-xevo-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lsHzFBnPuprIFjxSge8GtrYSIMXs07SliwIsejysFKM=; b=wh1drSlpHNabYs1vvCoX+uexGaMf37wiF1YOOSLyFEDxquWQt8pbp/53ASqrPriYITRsKOc4lu95t7viBnV+SEDBFvHh4eXNWQ9dO8SuuYYqH+Yzx/rRJfYphcfvsQgRzCmAZya2BtTFJAu2lHW4u8vAtOuXP32Iub5n72UpPqw= Received: from columbia.corp.xevo.com (65.122.179.226) by MW2PR0102MB3419.prod.exchangelabs.com (2603:10b6:302:3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Tue, 1 May 2018 17:57:05 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: Jean-Baptiste Maneyrol , Martin Kelly Subject: [PATCH 1/2] iio: imu: inv_mpu6050: minor wording fixes Date: Tue, 1 May 2018 10:56:41 -0700 Message-Id: <20180501175642.8551-2-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180501175642.8551-1-mkelly@xevo.com> References: <20180501175642.8551-1-mkelly@xevo.com> MIME-Version: 1.0 X-Originating-IP: [65.122.179.226] X-ClientProxiedBy: MWHPR13CA0013.namprd13.prod.outlook.com (2603:10b6:300:16::23) To MW2PR0102MB3419.prod.exchangelabs.com (2603:10b6:302:3::12) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:MW2PR0102MB3419; X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3419; 3:37bUMLT7g5JlYonoIyONkMxJykgr3qH0nCdDqN21tj1fWlYBipa7VwEjSppsHXcaS3iG1BgbR5wLtqiPDbpd5z0o2L6431TV0zHEl+lUTHqTfzxIOGI1Yxh9tZE19Ri1HSoyeyTPKDWLX2S2zIRDdlzxnFY3hfCb0gkW+79aEWn10I6b0xai8g6lykRyy5lP42/Yzi+R6gQo9itsJ7leuUEZN9W4PH1zH9I6zjsbGzzadcOOxj0b03Jvs0Iy84MJ; 25:yUSkIy6EE1s4ffpc8EzjeSquDWAFiqVLPhJBdaIZB95gZE6duCbbuX614R59Tkr8cs3BsmtW64tn5fVqndaiUYncmU6BvIfxMJQ0CRYT0YIhkkXIZuJKSyIQa0cTtI91AHDsDbCQb9xT2gcgKilwRWR/+c8tZLDtny9MCWKfH+NCsqQcxB+gqbgv4liSfWgFVxtczqnmRVgMbR5i4Zl44BFLMaJuKOxJyBp8akb58nBjceOOx9Q+I0B/wBb8qnx48GixOeXNu2yMQf2DDRhLUBLeFwsCZ2BrSlfacrpHdvdlUp4Mpw6FYnGDSiWXyG9jEwcQ7i2Q36jM2iZGZAHxUg==; 31:SdNkNbOs12K4rYiZ6/o3YSdwcpZlSvFKKVAUX+jFTaPMh4tsSyVuXpzK18Qe4k2NdUftB+OqI8A0Uv9Vg5OrWxVolUEqTVP7EHWPhH9AGtNsXKZO38rS+16nmmjjulMG2OJw2F8HIr7KVcKKZHyr39M4p9LQWTienpbnpwesaLmoYQa58moL0Zx3EQ1XnBYTzQ4UB2PtJNpGJluoSo4a4hTSMkjiKcxhZtvT0wEEOBE= X-MS-TrafficTypeDiagnostic: MW2PR0102MB3419: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3419; 20:aOec9Qknt6DiaIXARNp8fr+LDovDkwKRvr26iWr8dbwc6kn3t0JfZoibdRYtUOnKCE7IfW4Mh9YNP6RMN/eB/VXvLA9oLWDu6SILP128dbLj2fLbNCTA21U8wuJiVYAPr9Wbgs+gFmTmfBVsMXP4EwtKNUo32Oi/yFwd5/I6OsHxY46Mt2MZB8xDmR6iCPYD2YaFEMgevZGQAoshGlmjUzsaEipwPaLUs53MJZ7yU6Hi5uMGnlhjPhFEvF0Q9etUBdAVOyqAOREPzbCBWo/Az7+xR1nTNWvqbS60YO5lLYDtBBA/6xxvXy1m5w8cttGHveJSAzmWYRiG4BtJ6XRiddlS2/vsgPn8vrGHP25/5DRc4C78rmMtX55KnVB0Cim1eWrPo8/V/jAFlw/2yNDwa54xDgAK4xexu1c5ktrdI1Tp0oXuwSB32yCpbMqO4nGIkUi13LgK8+Z/vDX7X29DyZUdbHmWzOcam3M8BD6jPWcir8lz+xAktfJTS9E86AAY; 4:QHaAM4nl2W0GzEGgzNVycT0uwJf+/rHSYVlc/SBhIvPHrCCHp11R+nWSc9otder3Jp5+HR4v8yMXSUreLgnSZINtq0kZ35DVsm6SXHXzmACq0ezDYjUQkspHEXPtmSNLmngq8hT6ujj8TwQaN09289EFho9GcOoWhhs0VrORaMW7ddfx9G6tn1n2Fm4r5xWH+GOz7XfPUNgb5P2Cq3kbtqUXAXfl+3V6iGPOeWX0nTXn5vv4Xp95AjTsQQJftqwkwSF9FNMH4LxOMO6jkaOXawUZnWbTStQopDx9lesvqH36+6s3kY/LfcYHR12s3MG+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:MW2PR0102MB3419; BCL:0; PCL:0; RULEID:; SRVR:MW2PR0102MB3419; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(366004)(376002)(39840400004)(39380400002)(189003)(199004)(8676002)(59450400001)(51416003)(16586007)(316002)(5660300001)(386003)(11346002)(86362001)(4326008)(107886003)(97736004)(36756003)(305945005)(956004)(2616005)(486006)(16526019)(446003)(6916009)(6666003)(26005)(76176011)(7736002)(476003)(186003)(52116002)(54906003)(2906002)(7696005)(66066001)(68736007)(2351001)(2361001)(48376002)(6116002)(50466002)(478600001)(106356001)(105586002)(81166006)(81156014)(1076002)(6486002)(8936002)(25786009)(3846002)(53936002)(47776003)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR0102MB3419; H:columbia.corp.xevo.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: xevo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR0102MB3419; 23:YLDBHBebys/f7eVl5vp/wpSoNxU/15LLkXRzZMd?= =?us-ascii?Q?hYNMv9h8iCA40SZ8M4UrHZHkGqdbqVvW5xD5RLq+VNae3zxRF47KLMkRlt9Q?= =?us-ascii?Q?BvBGChSPmw9bTflWYjDXhtsl9rJy80pMa3dZffsvXAOGz6rjJ69/LoEWHv2v?= =?us-ascii?Q?0MZ0Dn1fUlBTjB2YRcWWsEcvYl7eIkRyMJtpGvEh4UjbG3W6g8Unu4i1aVHg?= =?us-ascii?Q?6zjwSIxT817Oi6slI8dZRV6iKZYHDV1XBL1Xwu5ga7m4itG3UAKiUKsmwPJt?= =?us-ascii?Q?zPow4IsUF5U9AJhNRJIFCaohzF5z7MUxQiZ6m/dN63DNGZKMmy81jgNVCpnv?= =?us-ascii?Q?UCsru0Bs4GzRv8y8jTNzPzs8W0ofn9vjpTBRce1/XTYARmKkaQJyv7KO2rvP?= =?us-ascii?Q?AS+i63+0mRHgvXcds0zIAOVgL+matv0r5AmnH1sq+4VHZLPU8VVRfW/JCyhi?= =?us-ascii?Q?kSpHk7mQVN1gLvmPr4b8X78ATdu0MUlY5uyER2X20iHNIHCHo3bsgFy+zUWV?= =?us-ascii?Q?2PzIzgXr3S4IT/Op+MEhfeIsZ/oV/YfxZnYjGQDUWDsnuC63/N7ADv/sGo0p?= =?us-ascii?Q?X6OLy6ZqhM0Mhd8u0chcuieIqoGsJhXdaZO8AF6s8WfnfCCiKJTsONrxXUk4?= =?us-ascii?Q?7PI4nihl9sb4Ey1f/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n5 X-MS-Office365-Filtering-Correlation-Id: ed64703f-c628-480e-daa6-08d5af8cf318 X-OriginatorOrg: xevo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 17:57:05.1255 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed64703f-c628-480e-daa6-08d5af8cf318 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR0102MB3419 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 Just some minor grammar/spelling fixes of things I noticed while reading the code. Signed-off-by: Martin Kelly --- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 2 +- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 2 +- drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index aafa77766b08..59dbdeb08da4 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -176,7 +176,7 @@ int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, u32 mask) return result; if (en) { - /* Wait for output stabilize */ + /* Wait for output to stabilize */ msleep(INV_MPU6050_TEMP_UP_TIME); if (mask == INV_MPU6050_BIT_PWR_GYRO_STBY) { /* switch internal clock to PLL */ diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c index 90fdc5eaef53..65dcb92be9f6 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -53,7 +53,7 @@ static int inv_mpu6050_deselect_bypass(struct i2c_mux_core *muxc, u32 chan_id) mutex_lock(&st->lock); - /* It doesn't really mattter, if any of the calls fails */ + /* It doesn't really matter if any of the calls fail */ regmap_write(st->map, st->reg->int_pin_cfg, st->irq_mask); inv_mpu6050_set_power_itg(st, false); diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c index e51404fdce97..0cb7c20100ca 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c @@ -155,7 +155,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p) bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; /* - * read fifo_count register to know how many bytes inside FIFO + * read fifo_count register to know how many bytes are inside the FIFO * right now */ result = regmap_bulk_read(st->map, st->reg->fifo_count_h, data, @@ -165,7 +165,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p) fifo_count = be16_to_cpup((__be16 *)(&data[0])); if (fifo_count < bytes_per_datum) goto end_session; - /* fifo count can't be odd number, if it is odd, reset fifo*/ + /* fifo count can't be an odd number. If it is odd, reset the FIFO. */ if (fifo_count & 1) goto flush_fifo; if (fifo_count > INV_MPU6050_FIFO_THRESHOLD)