Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634859

[PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static

From Colin King <colin.king@canonical.com>
Newsgroups linux.kernel
Subject [PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static
Date 2017-05-03 12:40 +0200
Message-ID <tCZRo-41a-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Colin Ian King <colin.king@canonical.com>

The function twl4030_bci_property_is_writeable can be made static
as it does not need to be in global scope.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/power/supply/twl4030_charger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/twl4030_charger.c b/drivers/power/supply/twl4030_charger.c
index abd10f6861ae..2f82d0e9ec1b 100644
--- a/drivers/power/supply/twl4030_charger.c
+++ b/drivers/power/supply/twl4030_charger.c
@@ -943,7 +943,7 @@ static int twl4030_bci_set_property(struct power_supply *psy,
 	return 0;
 }
 
-int twl4030_bci_property_is_writeable(struct power_supply *psy,
+static int twl4030_bci_property_is_writeable(struct power_supply *psy,
 				      enum power_supply_property psp)
 {
 	switch (psp) {
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static Colin King <colin.king@canonical.com> - 2017-05-03 12:40 +0200
  Re: [PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static "H. Nikolaus Schaller" <hns@goldelico.com> - 2017-05-03 14:30 +0200
  Re: [PATCH] power: supply: twl4030-charger: make  twl4030_bci_property_is_writeable static Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-05-04 17:30 +0200

csiph-web