hwmon: (mc13783-adc) Increase size of name string
smatch complains about mc13783_adc_probe() error: snprintf() chops off the last chars of 'id->name': 20 +vs 10 Use PLATFORM_NAME_SIZE instead of '10' as size when declaring the name variable. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Šī revīzija ir iekļauta:
@@ -37,7 +37,7 @@
|
||||
struct mc13783_adc_priv {
|
||||
struct mc13xxx *mc13xxx;
|
||||
struct device *hwmon_dev;
|
||||
char name[10];
|
||||
char name[PLATFORM_NAME_SIZE];
|
||||
};
|
||||
|
||||
static ssize_t mc13783_adc_show_name(struct device *dev, struct device_attribute
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user