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>
This commit is contained in:
Christophe JAILLET 2022-06-03 22:51:46 +02:00 committed by Guenter Roeck
parent 739743ec78
commit 39397ba8a7
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
* which contains this code, we don't worry about the wasted space.
*/
#include <linux/kernel.h>
#include <linux/minmax.h>
#include <linux/types.h>
/* straight from the datasheet */
#define LM75_TEMP_MIN (-55000)