Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4785294ybb; Tue, 14 Apr 2020 14:08:56 -0700 (PDT) X-Google-Smtp-Source: APiQypJzrlgT+MfQw8axdD+ddWuA7J5KvnbC4TXXw83zrBM+gqKsypS+XdWLSh5xdNogDRX7sDTL X-Received: by 2002:a17:907:a89:: with SMTP id by9mr1919512ejc.289.1586898536353; Tue, 14 Apr 2020 14:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586898536; cv=none; d=google.com; s=arc-20160816; b=oEJ+AXC9ietCjMS/eUY0blaYxenAGu5QjP16ZqqCkFS136YgKeEipKYutTGdO8QwIR Jb4lnhEKUr2yLEbqJh2+sRRYkmzDV7E2V/QT8jFVx4Erld9jNwbMBCKzNy1ts6/5qLAk zuMst2H+q8ssZvLnxFQ3WUSsme7FNpwNhvUH6fuB+YUGnHqJsHwKzCcXib+4PWQE6sQT PZLB94sGfq1feVD43H05y7W+kANXweu4jeXIBvq6wVSfT1aiaF/ZruyMC0rKxtAoLBoo vHM622DERb0KHcRCpuc6y12Qy4aFo5OuqT4uFdCyhSmvz640SYxJOT7ogmzq0zcqdenv RplQ== 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 :message-id:date:subject:cc:to:from; bh=0DbdgWETjkFQNwLt9/cEfQWWgtUnoSY7ifpBUD9iCEg=; b=bvAASPEEn2tJrPb0apQ6qIkZLxMRJRFBbjH3SJoyuqZ8Rpngk4EwvlHfWKVb+kCDS7 vz3eOI6VGAO5fKjecxgD5y9j9PHf1OijKVMXbL2bogduEsoRcUYTxTaGC1QWPw+png3l wcpe2z2fR3BphEAdj+HyniZveZ1uorUjM/RznMPVuBrhZPCqujZBRyX0aeAJOtBxfHLn COFLshqfoyE8+On4KOnI9Jr2kP01BGJGfVptHV/kHrIoCGEVAVb5O7fc24QBOqNtBm8D Lf/0bpxIimFRfx7jpCokQ4yq9kLa3KBE/pmduOytTXaNF4mKEf6LI84L4qinIyfNl3jV vNxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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 c13si8963521eja.65.2020.04.14.14.08.25; Tue, 14 Apr 2020 14:08:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S1733026AbgDMSjA (ORCPT + 99 others); Mon, 13 Apr 2020 14:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727904AbgDMSi7 (ORCPT ); Mon, 13 Apr 2020 14:38:59 -0400 X-Greylist: delayed 11050 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 13 Apr 2020 11:38:59 PDT Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 519FBC0A3BDC; Mon, 13 Apr 2020 11:38:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id DC6932A12B8 Received: by jupiter.universe (Postfix, from userid 1000) id 4D2BF4800F7; Mon, 13 Apr 2020 20:38:55 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCH 0/4] Add support for constant power-supply property tables Date: Mon, 13 Apr 2020 20:38:49 +0200 Message-Id: <20200413183853.1088823-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.25.1