[PATCH 05/10] hwmon: (amc2821) Reorder include files, drop unnecessary ones

Guenter Roeck posted 10 patches 1 year, 5 months ago
There is a newer version of this series
[PATCH 05/10] hwmon: (amc2821) Reorder include files, drop unnecessary ones
Posted by Guenter Roeck 1 year, 5 months ago
Reorder include files to alphabetic order to simplify maintenance,
and drop the unnecessary kernel.h include.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/hwmon/amc6821.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c
index 8801208430df..0ac073f83c19 100644
--- a/drivers/hwmon/amc6821.c
+++ b/drivers/hwmon/amc6821.c
@@ -8,16 +8,15 @@
  * Copyright (C) 2007 Hans J. Koch <hjk@hansjkoch.de>
  */
 
-#include <linux/kernel.h>	/* Needed for KERN_INFO */
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/slab.h>
-#include <linux/jiffies.h>
-#include <linux/i2c.h>
+#include <linux/err.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
-#include <linux/err.h>
+#include <linux/i2c.h>
+#include <linux/init.h>
+#include <linux/jiffies.h>
+#include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/slab.h>
 
 /*
  * Addresses to scan.
-- 
2.39.2
Re: [PATCH 05/10] hwmon: (amc2821) Reorder include files, drop unnecessary ones
Posted by Quentin Schulz 1 year, 5 months ago
Hi Guenter,

On 6/28/24 5:13 PM, Guenter Roeck wrote:
> Reorder include files to alphabetic order to simplify maintenance,
> and drop the unnecessary kernel.h include.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Thanks!
Quentin