Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1071705ybl; Wed, 14 Aug 2019 10:14:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqznolYYWM+iHYkkcyQxE4aEMyBsdUz1DtIgI2HzNHVcBQ7tWsqymX3P3c2TgWQ/JR4pqt10 X-Received: by 2002:a62:1bd5:: with SMTP id b204mr1014108pfb.14.1565802857455; Wed, 14 Aug 2019 10:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802857; cv=none; d=google.com; s=arc-20160816; b=HkQRFOxanU2COCU0LyKYEEvr4PN9bqCHzP+MWPbFjRSrc6Yt86ajPvk/nfcry/mBNb LksXGSe8onjuKoUvaPsCHaG9QFaiumXxEVfnl8KeJQO0RW+An8ZUpEUO4QQoTJXwaaGx i1LoucqfLNZWpzixtcJv7tU2ks/jeIyW7Irpm8aHp1eui2ZBcQaLUrvCBH5YzwflXnss rNzfj5Pc3/N0K7zQETFaif9qiY2U1U8vmW2f46vfUR6+CJnWxYvfPj6HTzAYfTI8GytM 9MkwzWJh7CI7nxIbVIxHrx5wA7Bo0wJDFm5bQ1mUO5OtSkL6iW8Vey51bQ0mSdBexHkH rgAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nnWPAyM+RqsDNxjSajqhzIdo9HGae0DU303/Oa5XdwU=; b=spfVsHauqoDLccGJkbQedUDv9Skgr2bMhc5vLeU8mIgQVDs7nqPFSfa6QJsIP5a5ER UQp4904/TgHVXRfpPWghGfXHuoas5++BdDH0FtoWW8Jpwt9JPp3xLOtT5UD+pU4QMHuV JUL6JxPdSYSq6Csp/fBMSWD62EA09VXjWhfgDOug7PNStOXe6YC+IxtOrj2gW64fa4mk nUekY8xQwnUx2RRIonPfYfYWYf68ybCI/npAgGzQiCg3f284wh4u/DuH3hKtD0DdcZNB 9AFcSj7oNmN3fe0tKBFTI7TM3MXmXIQyOawkua5D/WYphCv8EUiJduyn/jKyceIno9el L3OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2TRUSEzQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si83438pfv.74.2019.08.14.10.14.02; Wed, 14 Aug 2019 10:14:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2TRUSEzQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730906AbfHNRN3 (ORCPT + 99 others); Wed, 14 Aug 2019 13:13:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:37682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730888AbfHNRNZ (ORCPT ); Wed, 14 Aug 2019 13:13:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D30AB2063F; Wed, 14 Aug 2019 17:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802805; bh=a7K/CS+9KoiJHQSFEdbPGxqR6o8sHxo9UoNAUT75B/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2TRUSEzQPFZwXpFOJbumQ/r3yFD6UUBlz7+riRwszFHM13KqwoRWwtEZQ/JIEJTFS rMymaiEetTJNnmDSVq5U7AMzL5ilrF9kvYtUUOk6Qp+zSRnSN+a5h9wgJnvOIsPpiq YEDvZ6sjr1E854uu/wjE9Jc4kDylTn8+oT3h6n5o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjoern Gerhart , Guenter Roeck , Sasha Levin Subject: [PATCH 4.14 32/69] hwmon: (nct6775) Fix register address and added missed tolerance for nct6106 Date: Wed, 14 Aug 2019 19:01:30 +0200 Message-Id: <20190814165747.750908238@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165744.822314328@linuxfoundation.org> References: <20190814165744.822314328@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f3d43e2e45fd9d44ba52d20debd12cd4ee9c89bf ] Fixed address of third NCT6106_REG_WEIGHT_DUTY_STEP, and added missed NCT6106_REG_TOLERANCE_H. Fixes: 6c009501ff200 ("hwmon: (nct6775) Add support for NCT6102D/6106D") Signed-off-by: Bjoern Gerhart Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/nct6775.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index ca9941fa741b7..7e14143ed1191 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -769,7 +769,7 @@ static const u16 NCT6106_REG_TARGET[] = { 0x111, 0x121, 0x131 }; static const u16 NCT6106_REG_WEIGHT_TEMP_SEL[] = { 0x168, 0x178, 0x188 }; static const u16 NCT6106_REG_WEIGHT_TEMP_STEP[] = { 0x169, 0x179, 0x189 }; static const u16 NCT6106_REG_WEIGHT_TEMP_STEP_TOL[] = { 0x16a, 0x17a, 0x18a }; -static const u16 NCT6106_REG_WEIGHT_DUTY_STEP[] = { 0x16b, 0x17b, 0x17c }; +static const u16 NCT6106_REG_WEIGHT_DUTY_STEP[] = { 0x16b, 0x17b, 0x18b }; static const u16 NCT6106_REG_WEIGHT_TEMP_BASE[] = { 0x16c, 0x17c, 0x18c }; static const u16 NCT6106_REG_WEIGHT_DUTY_BASE[] = { 0x16d, 0x17d, 0x18d }; @@ -3592,6 +3592,7 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_TIME[0] = NCT6106_REG_FAN_STOP_TIME; data->REG_FAN_TIME[1] = NCT6106_REG_FAN_STEP_UP_TIME; data->REG_FAN_TIME[2] = NCT6106_REG_FAN_STEP_DOWN_TIME; + data->REG_TOLERANCE_H = NCT6106_REG_TOLERANCE_H; data->REG_PWM[0] = NCT6106_REG_PWM; data->REG_PWM[1] = NCT6106_REG_FAN_START_OUTPUT; data->REG_PWM[2] = NCT6106_REG_FAN_STOP_OUTPUT; -- 2.20.1