Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp444958ybl; Tue, 28 Jan 2020 06:07:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwNxrqYhukjNIJYJ34l7U4lRwY0Mql+fi/aznX1ZFxev3yfRJSuA804r0UyxPwqAQec2ga4 X-Received: by 2002:aca:45c1:: with SMTP id s184mr2994424oia.158.1580220430928; Tue, 28 Jan 2020 06:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580220430; cv=none; d=google.com; s=arc-20160816; b=uTAcZ6H2RHZnRQUxxCiR1aqJbKhQ4cHV+8ILjHNPpB/mLdXkAgbZsnzFOCEqxB/cFf 6XYWjuHFzx1hTosc6MLCkNqqqjEnHLvGYNRbHLkNcDyT9KPkyUdbr2Eaq+k8yi4iQQ8g NNUcL8OxmC64i6OvtO8tITpN9TthuQlt0Rlhby+T9u9b7ZJed5CtZroVyQRJTW6bHspA hocuzfPD24CwKvoy9VHH7r7BWHu+Dx1ZZ09jwVWC9Qe/jG+e7qS1cIpX6RUtylky9kRD 3B+SOXQ+EeTWaa+Or+/m4XaeYACRW1tvFc1WeRzPTWkX/J8zUyP13cVjLrt+VbzOtSdC CwLQ== 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=Wmn4FEWdlaHyeEbVVbdWo6BXQk+Xy7vZCIw1Dz8H8lE=; b=mANS07YHmTvLGpiLcRjvJ0DGnRLvd8c47hlG1ldMWFj2YbhtZwJdjhyoqoo7rHDx18 Ox547bh9vxNUSLPZyX2scSwHa8z6zPMlE4aXLCnqRGDBvuuhZxWpQjEITsgLjk3kk6sK bAH1ktTvyTKjbpBVF4iHOT8BU1flPLikPzo1EGq/LPCAqfWTwNXcK63NeI4lSvH4ulSo Hp584I3OSqpax3wsbCeY5oNkyz6v8zOqFzV2rtGgVY7Wtg6Lwt6Q2ETEUVmZN0zeyNv/ FHTFIrCZ/8FqvpK8zaX4dxQC4TcXeXMBhRJwzQfWNUX+uGPR8oo/2Ttzyk4r67o3UK61 TwIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wLM6WpYP; 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 s22si4312172otq.100.2020.01.28.06.06.52; Tue, 28 Jan 2020 06:07:10 -0800 (PST) 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=wLM6WpYP; 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 S1728043AbgA1OEP (ORCPT + 99 others); Tue, 28 Jan 2020 09:04:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:51242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbgA1OEN (ORCPT ); Tue, 28 Jan 2020 09:04:13 -0500 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 3218024683; Tue, 28 Jan 2020 14:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220252; bh=J+CdNbZFHUlGzR3U8LXyhHo5Exnk4qoCBAXLCOfOgis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wLM6WpYPEG1Cz9c7p/A9wYgM2szVn5trpew1Ch1vOKRvRpyxPEi87z/wlLLN26L8Z Y/CRxKLTZ+42li1u0MME3WzEWrt69mie7PF08+xv0dnvq+SVIfZWvk3UVVCMhTYpG7 nu1gaiSjiOwGich8H63Jv6E91Afyo3B4DPqH1kTY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gilles Buloz , Guenter Roeck Subject: [PATCH 5.4 076/104] hwmon: (nct7802) Fix voltage limits to wrong registers Date: Tue, 28 Jan 2020 15:00:37 +0100 Message-Id: <20200128135827.745264659@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135817.238524998@linuxfoundation.org> References: <20200128135817.238524998@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 From: Gilles Buloz commit 7713e62c8623c54dac88d1fa724aa487a38c3efb upstream. in0 thresholds are written to the in2 thresholds registers in2 thresholds to in3 thresholds in3 thresholds to in4 thresholds in4 thresholds to in0 thresholds Signed-off-by: Gilles Buloz Link: https://lore.kernel.org/r/5de0f509.rc0oEvPOMjbfPW1w%gilles.buloz@kontron.com Fixes: 3434f3783580 ("hwmon: Driver for Nuvoton NCT7802Y") Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/nct7802.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/hwmon/nct7802.c +++ b/drivers/hwmon/nct7802.c @@ -23,8 +23,8 @@ static const u8 REG_VOLTAGE[5] = { 0x09, 0x0a, 0x0c, 0x0d, 0x0e }; static const u8 REG_VOLTAGE_LIMIT_LSB[2][5] = { - { 0x40, 0x00, 0x42, 0x44, 0x46 }, - { 0x3f, 0x00, 0x41, 0x43, 0x45 }, + { 0x46, 0x00, 0x40, 0x42, 0x44 }, + { 0x45, 0x00, 0x3f, 0x41, 0x43 }, }; static const u8 REG_VOLTAGE_LIMIT_MSB[5] = { 0x48, 0x00, 0x47, 0x47, 0x48 };