aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/eeprom
diff options
context:
space:
mode:
authorArce, Abraham <x0066660@ti.com>2010-05-13 16:05:47 -0400
committerJiri Kosina <jkosina@suse.cz>2010-05-14 05:00:38 -0400
commit6858d49833b8c2aae74adcb593065797409d376e (patch)
tree2c65db3db9c18fe01af756b29ed806569aafea3c /drivers/misc/eeprom
parent654087faf8ad0695d6b384465e3380a1d8de1cb2 (diff)
EEPROM: max6875: Header file cleanup
Change max6875.c header file to format as in conventions Signed-off-by: Abraham Arce <x0066660@ti.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r--drivers/misc/eeprom/max6875.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/drivers/misc/eeprom/max6875.c b/drivers/misc/eeprom/max6875.c
index 5a6b2bce8ad5..fe2909278507 100644
--- a/drivers/misc/eeprom/max6875.c
+++ b/drivers/misc/eeprom/max6875.c
@@ -1,30 +1,30 @@
1/* 1/*
2 max6875.c - driver for MAX6874/MAX6875 2 * max6875.c - driver for MAX6874/MAX6875
3 3 *
4 Copyright (C) 2005 Ben Gardner <bgardner@wabtec.com> 4 * Copyright (C) 2005 Ben Gardner <bgardner@wabtec.com>
5 5 *
6 Based on eeprom.c 6 * Based on eeprom.c
7 7 *
8 The MAX6875 has a bank of registers and two banks of EEPROM. 8 * The MAX6875 has a bank of registers and two banks of EEPROM.
9 Address ranges are defined as follows: 9 * Address ranges are defined as follows:
10 * 0x0000 - 0x0046 = configuration registers 10 * * 0x0000 - 0x0046 = configuration registers
11 * 0x8000 - 0x8046 = configuration EEPROM 11 * * 0x8000 - 0x8046 = configuration EEPROM
12 * 0x8100 - 0x82FF = user EEPROM 12 * * 0x8100 - 0x82FF = user EEPROM
13 13 *
14 This driver makes the user EEPROM available for read. 14 * This driver makes the user EEPROM available for read.
15 15 *
16 The registers & config EEPROM should be accessed via i2c-dev. 16 * The registers & config EEPROM should be accessed via i2c-dev.
17 17 *
18 The MAX6875 ignores the lowest address bit, so each chip responds to 18 * The MAX6875 ignores the lowest address bit, so each chip responds to
19 two addresses - 0x50/0x51 and 0x52/0x53. 19 * two addresses - 0x50/0x51 and 0x52/0x53.
20 20 *
21 Note that the MAX6875 uses i2c_smbus_write_byte_data() to set the read 21 * Note that the MAX6875 uses i2c_smbus_write_byte_data() to set the read
22 address, so this driver is destructive if loaded for the wrong EEPROM chip. 22 * address, so this driver is destructive if loaded for the wrong EEPROM chip.
23 23 *
24 This program is free software; you can redistribute it and/or modify 24 * This program is free software; you can redistribute it and/or modify
25 it under the terms of the GNU General Public License as published by 25 * it under the terms of the GNU General Public License as published by
26 the Free Software Foundation; version 2 of the License. 26 * the Free Software Foundation; version 2 of the License.
27*/ 27 */
28 28
29#include <linux/kernel.h> 29#include <linux/kernel.h>
30#include <linux/init.h> 30#include <linux/init.h>