From patchwork Wed Dec 12 00:55:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Fertic X-Patchwork-Id: 10725397 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 97C51112E for ; Wed, 12 Dec 2018 00:56:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8782529FF0 for ; Wed, 12 Dec 2018 00:56:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B9ED2A17B; Wed, 12 Dec 2018 00:56: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 2331C29FF0 for ; Wed, 12 Dec 2018 00:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbeLLAz4 (ORCPT ); Tue, 11 Dec 2018 19:55:56 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:39752 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbeLLAzz (ORCPT ); Tue, 11 Dec 2018 19:55:55 -0500 Received: by mail-io1-f67.google.com with SMTP id k7so13460611iob.6; Tue, 11 Dec 2018 16:55:54 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=TPkjkn4TiJ7mp9DhGzQAAKMsgbvt73YionGsm/gSjY4=; b=R4BhEUmK6ZviloqxhFxozlbCP7iAwAVvHN7kvWcqq3m24OtBxNuxS6vYZkvTVj4XOh n+sNJpu0QImgOe/b+lZYFS9+V+npCAII6yn9NjvmfeldowfKOylKTZmHohdwxgMHJs/Q VdGEdLm/ymO+DFdmQttDtgB/TSZ0ORmwZX9foMkpUxwjIQAj7PPyIHlAzVdPDTOZe6RM rH1jYtD/aZAtW67iJ1C0hwf+nO1FGt6nGhfBHlCkfGye7o3Tgs3fE7IfCTEL/3DVOQ15 PY7sII97JfOk8unTA7C4iP1vq0R2A1146H2A4qzqObAvYICjsiEeNrbFW6HH4eXoaJ6b LV0g== 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:mime-version:content-transfer-encoding; bh=TPkjkn4TiJ7mp9DhGzQAAKMsgbvt73YionGsm/gSjY4=; b=Lv/2nSWY7xbrBYoDKGEllL0SrP3oncZHJZ1MqFPeVgp1P+DI0qYYZYtdXwwimKUqSg hPBIeEmI7+o7CzAnj/0I4wqSSS5Ruz8bdn7St9IhhnStNzaNbblLpznZsgw6jJ3rWcYz /PCJIjBqSO9bvOlB8i/iuidPLKcH5gIats9Fl8mOFBqJWMsN8IEPUpirwgLvQ8qZetH4 Q/NGjmJboJTXaa3lI8RTE/4r0OSfzbD1UROAD5QeoMtUbY68Km1Rr4r3k26E5ITN4tN9 AhmkRb8hDtoJrEoCqEDpnFoWeLaMlDmcXf+1PXapTxk0un4BTLsP5Uwe82XWIdB+Ggyi W8HA== X-Gm-Message-State: AA+aEWbI2OYL8aQgYPrfJ+WsBZdcTu4qNCYLWxz8PJhw9ycaYx9taIZk ctpHCd4SNs4LqW5Xq6cqTKY= X-Google-Smtp-Source: AFSGD/U85FP8yW06Gpays7eYyLSdl3+J/nNGtrs8TRb6qbpA1f0F8xFbR1gWjVWPyUshtaHS7yNPHA== X-Received: by 2002:a5d:8b0b:: with SMTP id k11mr14074813ion.213.1544576153694; Tue, 11 Dec 2018 16:55:53 -0800 (PST) Received: from r2700x.localdomain (c-75-70-96-103.hsd1.co.comcast.net. [75.70.96.103]) by smtp.gmail.com with ESMTPSA id l186sm1952445itl.22.2018.12.11.16.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 16:55:53 -0800 (PST) From: Jeremy Fertic To: Jonathan Cameron Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jeremy Fertic Subject: [PATCH 11/11] staging: iio: adt7316: correct spelling of ADT7316_DA_EN_VIA_DAC_LDCA Date: Tue, 11 Dec 2018 17:55:03 -0700 Message-Id: <20181212005503.28054-12-jeremyfertic@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181212005503.28054-1-jeremyfertic@gmail.com> References: <20181212005503.28054-1-jeremyfertic@gmail.com> MIME-Version: 1.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 Change LDCA to LDAC. Signed-off-by: Jeremy Fertic --- drivers/staging/iio/addac/adt7316.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 58b462ad0c83..020d695ded97 100644 --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -119,7 +119,7 @@ */ #define ADT7316_ADCLK_22_5 0x1 #define ADT7316_DA_HIGH_RESOLUTION 0x2 -#define ADT7316_DA_EN_VIA_DAC_LDCA 0x8 +#define ADT7316_DA_EN_VIA_DAC_LDAC 0x8 #define ADT7516_AIN_IN_VREF 0x10 #define ADT7316_EN_IN_TEMP_PROP_DACA 0x20 #define ADT7316_EN_EX_TEMP_PROP_DACB 0x40 @@ -847,7 +847,7 @@ static ssize_t adt7316_show_DAC_update_mode(struct device *dev, struct iio_dev *dev_info = dev_to_iio_dev(dev); struct adt7316_chip_info *chip = iio_priv(dev_info); - if (!(chip->config3 & ADT7316_DA_EN_VIA_DAC_LDCA)) + if (!(chip->config3 & ADT7316_DA_EN_VIA_DAC_LDAC)) return sprintf(buf, "manual\n"); switch (chip->dac_config & ADT7316_DA_EN_MODE_MASK) { @@ -876,7 +876,7 @@ static ssize_t adt7316_store_DAC_update_mode(struct device *dev, u8 data; int ret; - if (!(chip->config3 & ADT7316_DA_EN_VIA_DAC_LDCA)) + if (!(chip->config3 & ADT7316_DA_EN_VIA_DAC_LDAC)) return -EPERM; ret = kstrtou8(buf, 10, &data); @@ -907,7 +907,7 @@ static ssize_t adt7316_show_all_DAC_update_modes(struct device *dev, struct iio_dev *dev_info = dev_to_iio_dev(dev); struct adt7316_chip_info *chip = iio_priv(dev_info); - if (chip->config3 & ADT7316_DA_EN_VIA_DAC_LDCA) + if (chip->config3 & ADT7316_DA_EN_VIA_DAC_LDAC) return sprintf(buf, "0 - auto at any MSB DAC writing\n" "1 - auto at MSB DAC AB and CD writing\n" "2 - auto at MSB DAC ABCD writing\n" @@ -929,7 +929,7 @@ static ssize_t adt7316_store_update_DAC(struct device *dev, u8 data; int ret; - if (chip->config3 & ADT7316_DA_EN_VIA_DAC_LDCA) { + if (chip->config3 & ADT7316_DA_EN_VIA_DAC_LDAC) { if ((chip->dac_config & ADT7316_DA_EN_MODE_MASK) != ADT7316_DA_EN_MODE_LDAC) return -EPERM; @@ -2128,7 +2128,7 @@ int adt7316_probe(struct device *dev, struct adt7316_bus *bus, } if (!chip->ldac_pin) { - chip->config3 |= ADT7316_DA_EN_VIA_DAC_LDCA; + chip->config3 |= ADT7316_DA_EN_VIA_DAC_LDAC; if ((chip->id & ID_FAMILY_MASK) == ID_ADT75XX) chip->config1 |= ADT7516_SEL_AIN3; }