Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (lm75) Replace kernel.h with the necessary inclusions

When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/4e07ed43274ad912d4efcfc04f673f25e8f89fdc.1654289489.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Christophe JAILLET and committed by
Guenter Roeck
39397ba8 739743ec

+2 -1
+2 -1
drivers/hwmon/lm75.h
··· 11 11 * which contains this code, we don't worry about the wasted space. 12 12 */ 13 13 14 - #include <linux/kernel.h> 14 + #include <linux/minmax.h> 15 + #include <linux/types.h> 15 16 16 17 /* straight from the datasheet */ 17 18 #define LM75_TEMP_MIN (-55000)