aboutsummaryrefslogtreecommitdiff
path: root/cds9k-led.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-22 17:35:02 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-22 17:35:02 +1200
commit0d185a49c8404ae388fb2c8cd7e1612680db4d89 (patch)
treecc64794c657895bc031e2771a9b6d9638d3c49d3 /cds9k-led.c
parentcb1873c3270b9f0891a9bc0faebb45b23f3cb37b (diff)
downloadcds9k-master.tar.xz
Ensure driver functions and data are staticHEADmaster
Diffstat (limited to 'cds9k-led.c')
-rw-r--r--cds9k-led.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cds9k-led.c b/cds9k-led.c
index 55f4ce7..3de9e98 100644
--- a/cds9k-led.c
+++ b/cds9k-led.c
@@ -19,9 +19,9 @@ struct cds9k_led {
u32 base;
};
-int cds9k_led_blink_set(struct led_classdev *led_cdev,
- unsigned long *delay_on,
- unsigned long *delay_off)
+static int cds9k_led_blink_set(struct led_classdev *led_cdev,
+ unsigned long *delay_on,
+ unsigned long *delay_off)
{
struct cds9k_led *led = container_of(led_cdev, struct cds9k_led, cdev);
unsigned long blink_value;
@@ -35,8 +35,8 @@ int cds9k_led_blink_set(struct led_classdev *led_cdev,
return regmap_write(led->regmap, led->base + LED_REG_PERIOD, blink_value);
}
-void cds9k_led_brightness_set(struct led_classdev *led_cdev,
- enum led_brightness brightness)
+static void cds9k_led_brightness_set(struct led_classdev *led_cdev,
+ enum led_brightness brightness)
{
unsigned long blink_off = 0;
struct cds9k_led *led = container_of(led_cdev, struct cds9k_led, cdev);
@@ -45,7 +45,7 @@ void cds9k_led_brightness_set(struct led_classdev *led_cdev,
cds9k_led_blink_set(led_cdev, &blink_off, &blink_off);
}
-enum led_brightness cds9k_led_brightness_get(struct led_classdev *led_cdev)
+static enum led_brightness cds9k_led_brightness_get(struct led_classdev *led_cdev)
{
int ret;
unsigned int brightness;