]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (lm75) Add explicit default cases in lm75_is_visible()
authorFlaviu Nistor <flaviu.nistor@gmail.com>
Fri, 17 Apr 2026 05:57:00 +0000 (08:57 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 24 May 2026 20:54:01 +0000 (13:54 -0700)
commit42ef8bb116dae7610b0af65d7d819cd9239ad121
tree153dfdc127b054791fedf2872055667d57d50cb5
parenta7c5aab8105d04d0784deabaa544f2fe581cd661
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>
drivers/hwmon/lm75.c