From patchwork Tue Feb 13 22:36:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Lai X-Patchwork-Id: 10217671 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 A5E76601C2 for ; Tue, 13 Feb 2018 22:38:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EDD228D56 for ; Tue, 13 Feb 2018 22:38:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 823E628D51; Tue, 13 Feb 2018 22:38:04 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 AF23928D51 for ; Tue, 13 Feb 2018 22:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965949AbeBMWiD (ORCPT ); Tue, 13 Feb 2018 17:38:03 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:50180 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965935AbeBMWiC (ORCPT ); Tue, 13 Feb 2018 17:38:02 -0500 Received: by mail-wm0-f68.google.com with SMTP id k87so1154946wmi.0 for ; Tue, 13 Feb 2018 14:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=richardman-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=0Xfu1BfOimZtT7PH8iI2fO+yRuEGz4zzftRe7z6n+N0=; b=RA1cTBLAttPsYafqziPHZzgptDXSM3z6ROUuBsuTwykegKd8z3jgyZkPE+Nf49kBoN Fb+bsLSB5GzzJuZL2PwAt6ac/ymcB+F92tZxsXftmqIFJdwFwKGf1FnbZdVV0/JquUTW kh2fVuCwZ8uRNS1SGBFYMCDClubjlawcvUXWap3Ze+lKf+k0JDmcrIEv1TiQHRmv+3qg FjLmkFi3FpRqDydCQhrmrmzcCGI9TKeZIsQ+grOka6n1TDNlhHzC3hVM6ORF9XSOXhNG F5fsGL66QG7Reiq5cMJWofxepYltRoxq+1y5U6DfOEGj5grnAK3OkJMfc3CvdYkGVArw Co+A== 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=0Xfu1BfOimZtT7PH8iI2fO+yRuEGz4zzftRe7z6n+N0=; b=P4YRVMIjOMCQBugkDO7BrWHLfEwf5VQuZlB8k2fIhmtFyKFRKWelgNpAS7k03eccqZ JwPa1NSUaoIwHHuFkbj2s+JnqBW2YNGAXtCWtue3frawi7P7XdJxZtc6CdCtdFMpCrwI P4FV6wjCQQ1Mqd3mFn433A3iF0Iq5Aydhgo6xLeqzRDLwTdgVB2Y4sQMpTDx8fPkpTrc OOAJmiY1mxxE3F0B9VdJZeoXoURVwfqnYG/njxVrzzJd3oAUDWuAcR8v5EY7BeSTZcmK y0Gr6FRShLZPivXoEveuHsXbe01dRaJ95iDuCvqtlO3l7C77oNOXNN2QWP/tPRA6u1Ip 54aQ== X-Gm-Message-State: APf1xPDLtX6sVZIybg10JSrtIre9WJcuEtxeSlvB5oqxgbLZ/jrrOCh9 6Co+jwXdnJypfgbmHzP+TGzuRA== X-Google-Smtp-Source: AH8x226c7I7S8/ydxe6IcmxgtXzbsyEZMJyUcof/bXbtQhbT/s1Xm84S4iWTEl0hoWLLK0/nIP2jRg== X-Received: by 10.28.21.136 with SMTP id 130mr2289543wmv.152.1518561481059; Tue, 13 Feb 2018 14:38:01 -0800 (PST) Received: from RICHARDMAN.localdomain (cpc91232-cmbg18-2-0-cust493.5-4.cable.virginm.net. [82.2.125.238]) by smtp.gmail.com with ESMTPSA id p29sm13034272wmf.9.2018.02.13.14.37.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 14:38:00 -0800 (PST) From: Richard Lai Cc: richard@richardman.com, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Narcisa Ana Maria Vasile , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: chemical: ccs811: Typo correction in HW_ID_VALUE constant define naming Date: Tue, 13 Feb 2018 22:36:57 +0000 Message-Id: <1518561421-11736-1-git-send-email-richard@richardman.com> X-Mailer: git-send-email 2.7.4 To: unlisted-recipients:; (no To-header on input) 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 This particular constant was named with prefix "CCS881", which should be "CCS811" instead, just like the rest of constant names in the file, as this driver implementation is for AMS CCS811 sensor. "CCS881" could literally be referring to another sensor product unrelated to AMS CCS811 sensor. Signed-off-by: Richard Lai --- drivers/iio/chemical/ccs811.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c index 840a6cb..8e8beb7 100644 --- a/drivers/iio/chemical/ccs811.c +++ b/drivers/iio/chemical/ccs811.c @@ -31,7 +31,7 @@ #define CCS811_ALG_RESULT_DATA 0x02 #define CCS811_RAW_DATA 0x03 #define CCS811_HW_ID 0x20 -#define CCS881_HW_ID_VALUE 0x81 +#define CCS811_HW_ID_VALUE 0x81 #define CCS811_HW_VERSION 0x21 #define CCS811_HW_VERSION_VALUE 0x10 #define CCS811_HW_VERSION_MASK 0xF0 @@ -315,7 +315,7 @@ static int ccs811_probe(struct i2c_client *client, if (ret < 0) return ret; - if (ret != CCS881_HW_ID_VALUE) { + if (ret != CCS811_HW_ID_VALUE) { dev_err(&client->dev, "hardware id doesn't match CCS81x\n"); return -ENODEV; }