Skip to content

Commit cbe821a

Browse files
bjdooks-ctdtor
authored andcommitted
Input: axp20x-pek - make device attributes static
The two device attrbitues are not declared outside this file so make them static to avoid the following warnings: drivers/input/misc/axp20x-pek.c:194:1: warning: symbol 'dev_attr_startup' was not declared. Should it be static? drivers/input/misc/axp20x-pek.c:195:1: warning: symbol 'dev_attr_shutdown' was not declared. Should it be static? Signed-off-by: Ben Dooks (Codethink) <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent f0b57e1 commit cbe821a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/input/misc/axp20x-pek.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ static ssize_t axp20x_store_attr_shutdown(struct device *dev,
191191
axp20x_pek->info->shutdown_mask, buf, count);
192192
}
193193

194-
DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup, axp20x_store_attr_startup);
195-
DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown,
196-
axp20x_store_attr_shutdown);
194+
static DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup,
195+
axp20x_store_attr_startup);
196+
static DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown,
197+
axp20x_store_attr_shutdown);
197198

198199
static struct attribute *axp20x_attrs[] = {
199200
&dev_attr_startup.attr,

0 commit comments

Comments
 (0)