Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp478650ybl; Tue, 28 Jan 2020 06:35:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzQ3ekZJUQkvM/WUe95Bv0kjnWQi7e5RxgbvbM9D1coisl/yM5envV+ShFx11CWWLpOeg7/ X-Received: by 2002:aca:d484:: with SMTP id l126mr2887128oig.114.1580222127290; Tue, 28 Jan 2020 06:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222127; cv=none; d=google.com; s=arc-20160816; b=ZbfdNHnVeq1RtArsQu3qq99asRGYCwt0OZPN63XbAZJW6j1MDzDEfn6d3OV3YgnD1v FV1XyEvL/P5MicC45Y1rX95QAxGb274Si0YWbeSL/DYo1R04VNvTCqqsKEY2Ycoo2o3e jFQOv4X45JSt55U+k5VdNl8IHheCT5TWPLbLlXRazM0YaGLb3PvWmmy2Bt3E1ifD/L4G NI0soy7itG4rfTxGgYcPCKwN9wobACuQvDsh+pC6NbTBkwaWw/8eVMSQ5uCoBq+cmDjO 8TRDedhwVXGZtN0+4VJrktVdH9M1uF+TQHS6Gajf5fJ0ALdG2RI24roi5GnXllXug6Wz bfRA== 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=zqkDRFiO8Z1/Dcl82FJMPtnbd8fBTqBeMKa7sCd01Ng=; b=JRRxgjZdEFiPu93BvNGtslPmDATIxGvlX/opHunReOzA3hWnpTfU8ecZCVIMqL0mlX KUKLbAfsmkUKgYkZFnSq5Q1OUp5kS9pagwNISJwEht/kLnxQmMT2hGSkMmMyJY4L4Non aoGzZ2vSt38NEm+0QThWAdqQGj4F823eMS/a/LwMllKGaUg3bXpYDfM+53TKqdkVVY3j hosW0ohWOQa02/pcbeaE7tUE2Bc15QfPxhvhxEg0NsdeeDByDnmwBps+7C4Sd5dzgj+h VZynnQeH4vHCQRC9VT8NvqyAWVfCvdS9cMwOXwDtxucl0da6YoqfZ82Ca8Fi+sCKEEHY 7BQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f5gunr2s; 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 f17si8722794otq.96.2020.01.28.06.35.13; Tue, 28 Jan 2020 06:35:27 -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=f5gunr2s; 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 S1728971AbgA1Odb (ORCPT + 99 others); Tue, 28 Jan 2020 09:33:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:52312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731809AbgA1OZX (ORCPT ); Tue, 28 Jan 2020 09:25:23 -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 318242071E; Tue, 28 Jan 2020 14:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221522; bh=jxyCRKHd0fDIu343tBn5ZNUxn+VXjYVhvW/u9UIssOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5gunr2solUcwoXkzMItHYM1m7D8SD2IB4ZF2wHJ4csYuGKMPc5SzJpgJYn6780M2 li/ugcrDZG5t0Cmw3XY1HXn0vBB2KX50dItCYYyLAI2tfI1MacwJHnHUztzVBgiH8Q 5etZRyTtkQb/zdNM7wxCgEJlMWOqbO0oidekNw1E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gilles Buloz , Guenter Roeck Subject: [PATCH 4.9 257/271] hwmon: (nct7802) Fix voltage limits to wrong registers Date: Tue, 28 Jan 2020 15:06:46 +0100 Message-Id: <20200128135911.727902491@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@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 @@ -32,8 +32,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 };