Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3467886pxv; Mon, 19 Jul 2021 00:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6B1+zU13iTQdDOAw+QiU4iLRMQcDYKOMZ1eqTqsZYE7BoGawgswgM+Z1v42Ast3xgNW+q X-Received: by 2002:a92:d2ca:: with SMTP id w10mr15225680ilg.38.1626679351408; Mon, 19 Jul 2021 00:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626679351; cv=none; d=google.com; s=arc-20160816; b=aEDVAR56eiBS3P/SpbiczTx+4ewf/VaQbtjo0+WpxBs3h7B5pBzfyZVs3zBcw99UqQ 30A0rz8+I/4+fZqg6yzntGlPAn67rzVbkExvDdBsk+4c4GAuiSwUvNq4xHt0oc3tXLbK qfT9xfY6/Z6kligfCDvnmX1amp2oopzPMX+jnwtiCRToqLGMoxy1DY4wMu5ze9VPNUeB hOD4XYo4HiINGs6SytPZCKAVPFFmzu6vSWuepwrSaEdEwFiWIcZE98yQP3mktdzgW5Ej +QJnTg48H0zzxDo8oYIO2lkVQ1XRQAcvHCLQhpiPgAZA9h6HEyEOvfgHUUf318Ed8K8t Sz+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=CVGDaZsDY4PME7/N9mVxnymCvLoRHKYhnkmhynFbYZ0=; b=0/lzyypFPZ7tEwN6lLhcww3GFh/aZdvZoESDypjDTk51PZHaNhnc/jvjLVSZgek/wB tBQ0cyatqf8n/eGPBs3kMDZvgsTAE9Z7wZuQ+03c3NzlPHU6zfNhCL/lbBa+HahkE2yW vc50jgT9ZOwpqOI9tpqZeMXLI7lHeUZe33EEkhtCVqpwBv3a9otiz3h9haDp1fcAMzf0 kv2+SzYyocJ9CaQ19TINyZghWWElvp9KxmdCf9Y1SkK1bHhHI2IqWA+6yUwuc4meOw9I dBQE6QEJMQNPQC2UZrXaTjbBghHqa7ELBx0YMZym/Oh3PW4BxBQEQUswdW2qtLR25m90 PYyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=p9vhUqW9; dkim=pass header.i=@tq-group.com header.s=key1 header.b=l4VOYMr1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si9271568jan.106.2021.07.19.00.22.19; Mon, 19 Jul 2021 00:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=p9vhUqW9; dkim=pass header.i=@tq-group.com header.s=key1 header.b=l4VOYMr1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234814AbhGSHXl (ORCPT + 99 others); Mon, 19 Jul 2021 03:23:41 -0400 Received: from mx1.tq-group.com ([93.104.207.81]:25674 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234715AbhGSHXj (ORCPT ); Mon, 19 Jul 2021 03:23:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1626679240; x=1658215240; h=from:to:cc:subject:date:message-id; bh=CVGDaZsDY4PME7/N9mVxnymCvLoRHKYhnkmhynFbYZ0=; b=p9vhUqW9n4crIaAYBCZC6LPeaCFrVXLZElBNFAv/DNPaYOiuQzRpyLu6 fASOs6aifRy8pajyLhLFqJIFiId1LvRvacNlaK73GnTG64+HLt2WnSVlt cMdoVEwLYmf1hPxvw4QjhpfFFZTPwGsmDsYyUpZR7kOvYl9KPqS/Uqq0I Wwi2wpJxDlXELcGZ/0/OmALohlIHL4I8MTy5RfonImuXyg7NnseC+tmij TTDxQh/expbeM7tj2MHBw64bCCrPO9+8iIGUsKVPk0JIqolMcbWMVuNsc 6dcA7BiHrqvv34Xy5f9F2s8m4vp87i+bX+aJESnB/oZiKwzZiGggp14Qq w==; X-IronPort-AV: E=Sophos;i="5.84,251,1620684000"; d="scan'208";a="18512868" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 19 Jul 2021 09:20:36 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 19 Jul 2021 09:20:36 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 19 Jul 2021 09:20:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1626679236; x=1658215236; h=from:to:cc:subject:date:message-id; bh=CVGDaZsDY4PME7/N9mVxnymCvLoRHKYhnkmhynFbYZ0=; b=l4VOYMr1/2JFvY5GLPRMcqzAeXcOiDKfkBKWh/T5jlnZDiNsjnmNYjMA rRCkO3EC4/uKTlE6kY79ssSWmWYojXSfua11AoBK8wAr+HIWicxkK456h ry32UZ9P/AD+7pCe3ogNREtGW7TbV/gSPtYo97v1fjAARN5w4f3OC8t5H iAau17G5GoBcSOk9kyNdQFslkjpDkdYxqh0Su3ykqYQ15qViBcyieBLF0 6yH/yhe/qCznkmDNV9Ed1nQW7NNmNEZEAQzkrw0s/pPiLvP/uFMC01IaZ bMEJIZ/HhMjbF8MeismwMYY8SlAGHomB2lIP+SSMvHgaXrkifMdtb0P3M w==; X-IronPort-AV: E=Sophos;i="5.84,251,1620684000"; d="scan'208";a="18512862" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Jul 2021 09:20:36 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id E2568280070; Mon, 19 Jul 2021 09:20:35 +0200 (CEST) From: Matthias Schiffer To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH 1/2] power: supply: sbs-battery: relax voltage limit Date: Mon, 19 Jul 2021 09:20:18 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Smart Battery Data Specification allows for values 0..65535 mV, there is no reason to limit the value to 20000. Signed-off-by: Matthias Schiffer --- drivers/power/supply/sbs-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c index f84dbaab283a..3d6b8247d450 100644 --- a/drivers/power/supply/sbs-battery.c +++ b/drivers/power/supply/sbs-battery.c @@ -102,7 +102,7 @@ static const struct chip_data { [REG_TEMPERATURE] = SBS_DATA(POWER_SUPPLY_PROP_TEMP, 0x08, 0, 65535), [REG_VOLTAGE] = - SBS_DATA(POWER_SUPPLY_PROP_VOLTAGE_NOW, 0x09, 0, 20000), + SBS_DATA(POWER_SUPPLY_PROP_VOLTAGE_NOW, 0x09, 0, 65535), [REG_CURRENT_NOW] = SBS_DATA(POWER_SUPPLY_PROP_CURRENT_NOW, 0x0A, -32768, 32767), [REG_CURRENT_AVG] = -- 2.17.1