diff options
author | David Phillips <david@yeah.nah.nz> | 2021-05-22 17:35:02 +1200 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2021-05-22 17:35:02 +1200 |
commit | 0d185a49c8404ae388fb2c8cd7e1612680db4d89 (patch) | |
tree | cc64794c657895bc031e2771a9b6d9638d3c49d3 /cds9k-led.c | |
parent | cb1873c3270b9f0891a9bc0faebb45b23f3cb37b (diff) | |
download | cds9k-master.tar.xz |
Diffstat (limited to 'cds9k-led.c')
-rw-r--r-- | cds9k-led.c | 12 |
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; |