summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFlaviu Nistor <flaviu.nistor@gmail.com>2026-04-17 08:57:00 +0300
committerGuenter Roeck <linux@roeck-us.net>2026-05-24 13:54:01 -0700
commit42ef8bb116dae7610b0af65d7d819cd9239ad121 (patch)
tree153dfdc127b054791fedf2872055667d57d50cb5 /drivers
parenta7c5aab8105d04d0784deabaa544f2fe581cd661 (diff)
hwmon: (lm75) Add explicit default cases in lm75_is_visible()
Add explicit default labels to switch statements in lm75_is_visible(). This makes the control flow explicit and improves readability, but also keeps consistency to other usage of the switch statement in the driver. Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com> Link: https://lore.kernel.org/r/20260417055700.5739-1-flaviu.nistor@gmail.com [groeck: Reformatted description for line length] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/lm75.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index c283443e363b..a47ce32df983 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -539,6 +539,8 @@ static umode_t lm75_is_visible(const void *data, enum hwmon_sensor_types type,
if (config_data->params->num_sample_times > 1)
return 0644;
return 0444;
+ default:
+ break;
}
break;
case hwmon_temp:
@@ -555,6 +557,8 @@ static umode_t lm75_is_visible(const void *data, enum hwmon_sensor_types type,
if (config_data->params->alarm)
return 0444;
break;
+ default:
+ break;
}
break;
default: