Source
619
619
620
620
if (attr == &dev_attr_als_channel.attr ||
621
621
attr == &dev_attr_als_en.attr) {
622
622
if (!led->lm3533->have_als)
623
623
mode = 0;
624
624
}
625
625
626
626
return mode;
627
627
};
628
628
629
-
static struct attribute_group lm3533_led_attribute_group = {
629
+
static const struct attribute_group lm3533_led_attribute_group = {
630
630
.is_visible = lm3533_led_attr_is_visible,
631
631
.attrs = lm3533_led_attributes
632
632
};
633
633
634
634
static const struct attribute_group *lm3533_led_attribute_groups[] = {
635
635
&lm3533_led_attribute_group,
636
636
NULL
637
637
};
638
638
639
639
static int lm3533_led_setup(struct lm3533_led *led,