Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1085760ybl; Wed, 14 Aug 2019 10:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcIQLs0kupw+eGAsMpeBEuAmkmbsGhRlOBFujcxFyOTfSZf+iMiWu8JQq0rGVi06pONfgT X-Received: by 2002:a63:5b52:: with SMTP id l18mr244484pgm.21.1565803678115; Wed, 14 Aug 2019 10:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803678; cv=none; d=google.com; s=arc-20160816; b=ybR1uP5mr5qhNDDezEcIl/8VdnXvBCqe7jl5lY9zrvrUemrCBiYn6SHqV6sUjLZ/7U FgldQZi1HZt/3ah+LOagx8grYrQP6XvdiQ+2401j8q/ALhqG9dA1Jmvoyv4nh5Plvv7F vBodO9Zw8HTsIBwkwxj0ohLzK7lRmTTjet7SSk5/fRCXJANV9b3V3qIm2gIb120NTyfx DLV59G7eBrLrG7Li+BW7a07vyzG4171lM2eeQ2uSpQx8Dpm8LUZiWLSeboSfGVGbDWcW SBbF+3ObpFkMRiGUDtnFjlkxxm+Jnnpk7lKW8JtflRggddmhHsrOkqur4CQT1x4drswv OrGA== 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=JNnLp+I76lPBBm9cOiDoct30hDmGIauepmwNwxpDJxM=; b=E0TEPVp9SjxPY9GTalhAcRHqQMDqcOSuhkJvmIFnvQyLrDH+yb/NjErKfDWy3wyi3E d6xVKEhsxA/vcvHommcIlMPjaRdCBPOkbXBFAqRSH/SdpkywsDsRkcWGvkwVco0CIDE3 V+KhHWGOdRfMCXgenIcE/aBk8/uqgm/hM6GvOhtqFta8GrEnJ1JbzkCWzxqbmS/4XRZI 0+rrNNHhxfy+BE4vmalkpJSokobSl6mohQTty6E0pkGacz3rfMsK60FknAxFH+frjqMm wrZkkzZm3cP2Xj6fRZBTqE/Nl/krTyukFE1/gon3W1pSLxxoGA/Liax1JnSiPr564lre VsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DcS8mfus; 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 s6si244155plq.213.2019.08.14.10.27.41; Wed, 14 Aug 2019 10:27:58 -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=DcS8mfus; 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 S1729692AbfHNRZu (ORCPT + 99 others); Wed, 14 Aug 2019 13:25:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:54306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729416AbfHNRFW (ORCPT ); Wed, 14 Aug 2019 13:05:22 -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 F2FCB2084D; Wed, 14 Aug 2019 17:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802322; bh=jHUzRvX08OP472lu/v3sf61M1yuGyiy6QeG3rZC/FUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcS8mfuskJ6PScAzSz8t3sXds87RJWTa/ooL2Q+f64q6uWUNInYeFdZhKAR8yF+JF fhjcVdPo79UQ+wJKzCYStwoMU+G1MEMqd/OEJ3YyJsOTzHKO2I5NfaHQzHjZGcBLCC itCtQfL7zmcXN8Q/JkDL4MhKP0LlYDzQSqtdg0I8= 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 5.2 080/144] hwmon: (nct6775) Fix register address and added missed tolerance for nct6106 Date: Wed, 14 Aug 2019 19:00:36 +0200 Message-Id: <20190814165803.212456156@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@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 e7dff5febe161..d42bc0883a32b 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -852,7 +852,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 }; @@ -3764,6 +3764,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