From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECA9FC2D0DB for ; Tue, 28 Jan 2020 14:04:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA79E24685 for ; Tue, 28 Jan 2020 14:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220256; bh=J+CdNbZFHUlGzR3U8LXyhHo5Exnk4qoCBAXLCOfOgis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=zJsbQpcIU//3OdES6yFCIDhSZqGnVNup9zkilQAqloFYQUOvHCHGda5+iKstPpX5C OUwgLxLANNSctkz8VCTkthEy3B7cccNLKIhwqCHa7Ek49Fhxq7ASr8EnC5w+Nhp4dg cOOOgyALnG4g0ANKlKjYH2n+VUVJBgnDAhmMdRCA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727369AbgA1OEQ (ORCPT ); Tue, 28 Jan 2020 09:04:16 -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 };