This commit is contained in:
Ondrej Čerman 2020-01-19 14:31:45 +01:00
parent 422edfbce1
commit fc25fcc012

View file

@ -83,7 +83,7 @@ static umode_t zenpower_is_visible(struct kobject *kobj,
struct zenpower_data *data = dev_get_drvdata(dev);
switch (index) {
case 4 ... 11: // amperage and wattage
case 4 ... 11: // current and power
if (!data->amps_visible)
return 0;
break;