Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp593045ybz; Wed, 15 Apr 2020 14:44:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJzB1YKLRIZpRS39Vv/b0IUJuypYQheD5itCX3U+dyypRZMsHR6VPnlN26g+2PrzEYrOWMU X-Received: by 2002:a50:9384:: with SMTP id o4mr26761068eda.309.1586987094378; Wed, 15 Apr 2020 14:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987094; cv=none; d=google.com; s=arc-20160816; b=TaytoNjdynUCvBNMaK4cNZROxHaZvRb0kDbcBQFq2Em+6nTqmFO/e/n9EBfAuJsDXT C9iRV+rXCziGkiVzO/q3I7g5QolyJcoKNV9vBNrMo5Vp0/QxM2ECeu9KLMGZgkwvTQ9i z1VpEpxKKYakQUOnrq8M4PEpJTNC+4UROXVRb4YmWwJeSZFu7rz2MFM1KRTa82KXYlyq zXN8DcJPozoc9O2wfhjZlVLmQ2Tn2uQHuIU5tqwRyAQ8ojtaFvqAK+EghsVsu8yJi5Pa YgohipVDJyGQVXmYA5x93EeLXeeNcYWwvQ0qy3LEhV6kuUQZ21pOfxPE4dRdtGcY1N+M oVOg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WNyF3p9o44KsUWAKf+QbCwGiuozwRhc05irarEJz2Qo=; b=uvRgwC70PH7cUC0cdb8391G1hQzeUWFzAmX14HUrUdxlM8h8XJgZDc7DBJk7uwIZ97 wx+smliF/lvut5GhWqnej5lA9hLqF/SLwWoOj8HbBLrITZ7nHFF/l2Y8NaeGpw+JgWH8 4Fsa0d92/Mk/oedUeQpHm+ZYM0XnoiRFETb+RnpS7DVqwYLIGu0Zg6CAltK9Pp5kSI3c SOrdf5Cp6OJx1fvWQbjc+ud8OIXch7l+4rDC0NJ+Pp4zzNXCJvmgZ1I4d2CfykxVU/5C z94rJyOD+pLeyfhrHLBDniOLL/x7hHxZCB59jvtnhqS61ZTQpeO9s8fwq1o7dHtoq2sc SOsg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de6si883464edb.191.2020.04.15.14.44.30; Wed, 15 Apr 2020 14:44:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732211AbgDNPzl (ORCPT + 99 others); Tue, 14 Apr 2020 11:55:41 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45252 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728935AbgDNPzj (ORCPT ); Tue, 14 Apr 2020 11:55:39 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id CF1822A04F7 Subject: Re: [PATCH 0/4] Add support for constant power-supply property tables To: Sebastian Reichel , Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20200413183853.1088823-1-sebastian.reichel@collabora.com> From: Enric Balletbo i Serra Message-ID: <11e73f71-56f7-328a-ed4d-a4e393ba7265@collabora.com> Date: Tue, 14 Apr 2020 17:55:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200413183853.1088823-1-sebastian.reichel@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, I went through all the patches and Anyway I also tested with cros-usbpd-driver and they look good to me. I am wondering if you shouldn't constify the users in this series too, looks pretty trivial? Cheers, Enric On 13/4/20 20:38, Sebastian Reichel wrote: > Hi, > > This marks the properties and usb_types entries in > struct power_supply_desc as const, so that drivers > can constify those tables. > > -- Sebastian > > Sebastian Reichel (4): > power: supply: core: Constify usb_types > power: supply: charger-manager: Prepare for const properties > power: supply: generic-adc-battery: Prepare for const properties > power: supply: core: Constify properties > > drivers/power/supply/charger-manager.c | 40 ++++++++++++---------- > drivers/power/supply/generic-adc-battery.c | 22 ++++++------ > drivers/power/supply/power_supply_sysfs.c | 2 +- > include/linux/power_supply.h | 4 +-- > 4 files changed, 36 insertions(+), 32 deletions(-) >