Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1083642ybl; Wed, 14 Aug 2019 10:25:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgbhR3HKcVntHpXVg99A5X/GNAivtkTthjKWlG/B0OVun7ry3OgGPnOfCI5oUK5JAJovg7 X-Received: by 2002:a17:902:4683:: with SMTP id p3mr433608pld.31.1565803545936; Wed, 14 Aug 2019 10:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803545; cv=none; d=google.com; s=arc-20160816; b=bvTDIDosCkc8plU9K27VW2z23Jpb2Aw1ranTFuOmgZwrXboitdw91I7Sp7rIfj5VQl mcFKtDifYRWRBM0nFcqWHCd/OkAVLa6MBXTtA2tNyZMfrD+/O+6hMRkGEgGQki4UqjZ0 dqns6iXJBnwIe69+U1hQqNht60CV8EEfeomN6lmE0AT/YwKkSQweur40GbVw8h+BlSOs VOIO7mslAdw8nqTwx0CXUB7buTL1XP2FG4Nz9SVLP+t17sIrqBLVEoErDZTD1nPdCEii nBxcVh40/i5vK/qP/EFh8D3Had3GtlkvPLK8suLbA2HbULarDc40i37j0Pp7RuRwXbzm DgEg== 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=nTXQ/mNv3PUdys7w5KtpSpjX/4gej/Uf5COPA0BzdsU=; b=NQ1KMSu2jKe7AswwEvuVU5vrfZeaunyByW/GR2809X7tywTvfn53cX39FEv755xMj0 tpVeuD3NRKqm1INKqkX1TuKqzP9c2oXy2WZxGMPY/QYV984OLV/02L4kLk/ukM7tjzCR Vlxlko0WISX1z32yLdcRjpf6+X/LAePq7A4ymzShEbXHTKb8WdoO1DHA+8f9jhaULmNJ OMd4S1lkuGTJXRcdjUOrAv4UnJFA3bYiDVfMZqo3msrLVCfTcAW7JqpTa/TfM+xaBvxc Cer6hagCsnLmdYhkx6/chYUwBHn0lsPW8ywCTVmGrO+znyrrlJ4v8ZkITPrkKhcI54Io 2J8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WXsWWpgv; 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 34si285395plz.18.2019.08.14.10.25.30; Wed, 14 Aug 2019 10:25:45 -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=WXsWWpgv; 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 S1728349AbfHNRHO (ORCPT + 99 others); Wed, 14 Aug 2019 13:07:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbfHNRHM (ORCPT ); Wed, 14 Aug 2019 13:07:12 -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 8108D214DA; Wed, 14 Aug 2019 17:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802432; bh=n7th62+p9HsiNvdVUJr1MZnEwS84TWzyJY78o6f1Fxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXsWWpgv0zYext8m8LoCTpdPC/lmZDe7O7Oppr3wtJaVSQqVvO+z5u4u4GmY4n5gA zvEbnLl62rM7H01v5WsW7I5VN2O4PafP/WKAFz6uVnctLHGY1Px8CPBM3or+zVZij0 LKj6080el+q/zmbS45yJwwlKEncR2pskahsrQsEs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Iker Perez del Palomar Sustatxa , Guenter Roeck Subject: [PATCH 5.2 124/144] hwmon: (lm75) Fixup tmp75b clr_mask Date: Wed, 14 Aug 2019 19:01:20 +0200 Message-Id: <20190814165805.116317258@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 From: Iker Perez del Palomar Sustatxa commit a95a4f3f2702b55a89393bf0f1b2b3d79e0f7da2 upstream. The configuration register of the tmp75b sensor is 16bit long, however the first byte is reserved, so there is not no need to take care of it. Because the order of the bytes is little endian and it is only necessary to write one byte, the desired bits must be shifted into a 8 bit range. Fixes: 39abe9d88b30 ("hwmon: (lm75) Add support for TMP75B") Cc: stable@vger.kernel.org Signed-off-by: Iker Perez del Palomar Sustatxa Link: https://lore.kernel.org/r/20190801075324.4638-1-iker.perez@codethink.co.uk Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/lm75.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -343,7 +343,7 @@ lm75_probe(struct i2c_client *client, co data->sample_time = MSEC_PER_SEC / 2; break; case tmp75b: /* not one-shot mode, Conversion rate 37Hz */ - clr_mask |= 1 << 15 | 0x3 << 13; + clr_mask |= 1 << 7 | 0x3 << 5; data->resolution = 12; data->sample_time = MSEC_PER_SEC / 37; break;