summaryrefslogtreecommitdiff
path: root/drivers/w1/slaves/w1_bq27000.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-05-16 23:02:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 19:23:03 +0300
commit50fa2951bd744d2a82aa33074001efac12d4e1cf (patch)
tree8290ea3c8a7c7bd26cfea3788f4a632526c2ca92 /drivers/w1/slaves/w1_bq27000.c
parent13b9abfc92be7c4454bff912021b9f835dea6e15 (diff)
downloadlinux-50fa2951bd744d2a82aa33074001efac12d4e1cf.tar.xz
w1: Organize driver source to natural/common order
Structures and functions should be ordered such that forward declaration use is minimized. MODULE_* macros should immediately follow the structures and functions upon which they act. Remaining MODULE_* macros should be at the end of the file in alphabetical order. Signed-off-by: Andrew F. Davis <afd@ti.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/slaves/w1_bq27000.c')
-rw-r--r--drivers/w1/slaves/w1_bq27000.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/w1/slaves/w1_bq27000.c b/drivers/w1/slaves/w1_bq27000.c
index 9f4a86b754ba..d480900a28ab 100644
--- a/drivers/w1/slaves/w1_bq27000.c
+++ b/drivers/w1/slaves/w1_bq27000.c
@@ -25,6 +25,8 @@
#define HDQ_CMD_WRITE (1<<7)
static int F_ID;
+module_param(F_ID, int, S_IRUSR);
+MODULE_PARM_DESC(F_ID, "1-wire slave FID for BQ device");
static int w1_bq27000_read(struct device *dev, unsigned int reg)
{
@@ -106,13 +108,10 @@ static void __exit w1_bq27000_exit(void)
w1_unregister_family(&w1_bq27000_family);
}
-
module_init(w1_bq27000_init);
module_exit(w1_bq27000_exit);
-module_param(F_ID, int, S_IRUSR);
-MODULE_PARM_DESC(F_ID, "1-wire slave FID for BQ device");
-MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_BQ27000));
-MODULE_LICENSE("GPL");
MODULE_AUTHOR("Texas Instruments Ltd");
MODULE_DESCRIPTION("HDQ/1-wire slave driver bq27000 battery monitor chip");
+MODULE_LICENSE("GPL");
+MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_BQ27000));