Commit 168755ebb11e8bc17f2c12c42534adaf003a7d7e
Committed by
Samuel Ortiz
1 parent
10bbc48d7a
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mfd: Silence an lm3533 gcc warning
This is supposed to be umode_t. It causes a GCC warning: drivers/mfd/lm3533-core.c:440:2: warning: initialization from incompatible pointer type [enabled by default] drivers/mfd/lm3533-core.c:440:2: warning: (near initialization for ‘lm3533_attribute_group.is_visible’) [enabled by default] Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mfd/lm3533-core.c
... | ... | @@ -359,7 +359,7 @@ |
359 | 359 | #define to_dev_attr(_attr) \ |
360 | 360 | container_of(_attr, struct device_attribute, attr) |
361 | 361 | |
362 | -static mode_t lm3533_attr_is_visible(struct kobject *kobj, | |
362 | +static umode_t lm3533_attr_is_visible(struct kobject *kobj, | |
363 | 363 | struct attribute *attr, int n) |
364 | 364 | { |
365 | 365 | struct device *dev = container_of(kobj, struct device, kobj); |