mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drivers: misc: Mark functions as static in ad525x_dpot.c
This patch marks the function ad_dpot_add_files() and ad_dpot_remove_files() as static in ad525x_dpot.c because they are not used outside this file. Thus, it also eliminates the following warnings in ad525x_dpot.c: drivers/misc/ad525x_dpot.c:644:5: warning: no previous prototype for ‘ad_dpot_add_files’ [-Wmissing-prototypes] drivers/misc/ad525x_dpot.c:669:13: warning: no previous prototype for ‘ad_dpot_remove_files’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
4462943267
commit
1bdd2c45cc
1 changed files with 2 additions and 2 deletions
|
|
@ -641,7 +641,7 @@ static const struct attribute_group ad525x_group_commands = {
|
|||
.attrs = ad525x_attributes_commands,
|
||||
};
|
||||
|
||||
int ad_dpot_add_files(struct device *dev,
|
||||
static int ad_dpot_add_files(struct device *dev,
|
||||
unsigned features, unsigned rdac)
|
||||
{
|
||||
int err = sysfs_create_file(&dev->kobj,
|
||||
|
|
@ -666,7 +666,7 @@ int ad_dpot_add_files(struct device *dev,
|
|||
return err;
|
||||
}
|
||||
|
||||
inline void ad_dpot_remove_files(struct device *dev,
|
||||
static inline void ad_dpot_remove_files(struct device *dev,
|
||||
unsigned features, unsigned rdac)
|
||||
{
|
||||
sysfs_remove_file(&dev->kobj,
|
||||
|
|
|
|||
Loading…
Reference in a new issue