diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-12-16 05:04:49 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-12-16 05:04:49 -0500 |
commit | 348324c5b10bcba8d9daabdfb85a6927311be34f (patch) | |
tree | d06ca3a264407a14a1f36c1b798d6dc0dc1582d8 /include/linux/i2c | |
parent | 1e63bd9cc43db5400a1423a7ec8266b4e7c54bd0 (diff) | |
parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) |
Merge tag 'v3.13-rc4' into next
Synchronize with mainline to bring in the new keycode definitions and
new hwmon API.
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/at24.h | 55 | ||||
-rw-r--r-- | include/linux/i2c/twl.h | 2 |
2 files changed, 2 insertions, 55 deletions
diff --git a/include/linux/i2c/at24.h b/include/linux/i2c/at24.h deleted file mode 100644 index 285025a9cdc9..000000000000 --- a/include/linux/i2c/at24.h +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /* | ||
2 | * at24.h - platform_data for the at24 (generic eeprom) driver | ||
3 | * (C) Copyright 2008 by Pengutronix | ||
4 | * (C) Copyright 2012 by Wolfram Sang | ||
5 | * same license as the driver | ||
6 | */ | ||
7 | |||
8 | #ifndef _LINUX_AT24_H | ||
9 | #define _LINUX_AT24_H | ||
10 | |||
11 | #include <linux/types.h> | ||
12 | #include <linux/memory.h> | ||
13 | |||
14 | /** | ||
15 | * struct at24_platform_data - data to set up at24 (generic eeprom) driver | ||
16 | * @byte_len: size of eeprom in byte | ||
17 | * @page_size: number of byte which can be written in one go | ||
18 | * @flags: tunable options, check AT24_FLAG_* defines | ||
19 | * @setup: an optional callback invoked after eeprom is probed; enables kernel | ||
20 | code to access eeprom via memory_accessor, see example | ||
21 | * @context: optional parameter passed to setup() | ||
22 | * | ||
23 | * If you set up a custom eeprom type, please double-check the parameters. | ||
24 | * Especially page_size needs extra care, as you risk data loss if your value | ||
25 | * is bigger than what the chip actually supports! | ||
26 | * | ||
27 | * An example in pseudo code for a setup() callback: | ||
28 | * | ||
29 | * void get_mac_addr(struct memory_accessor *mem_acc, void *context) | ||
30 | * { | ||
31 | * u8 *mac_addr = ethernet_pdata->mac_addr; | ||
32 | * off_t offset = context; | ||
33 | * | ||
34 | * // Read MAC addr from EEPROM | ||
35 | * if (mem_acc->read(mem_acc, mac_addr, offset, ETH_ALEN) == ETH_ALEN) | ||
36 | * pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); | ||
37 | * } | ||
38 | * | ||
39 | * This function pointer and context can now be set up in at24_platform_data. | ||
40 | */ | ||
41 | |||
42 | struct at24_platform_data { | ||
43 | u32 byte_len; /* size (sum of all addr) */ | ||
44 | u16 page_size; /* for writes */ | ||
45 | u8 flags; | ||
46 | #define AT24_FLAG_ADDR16 0x80 /* address pointer is 16 bit */ | ||
47 | #define AT24_FLAG_READONLY 0x40 /* sysfs-entry will be read-only */ | ||
48 | #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */ | ||
49 | #define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */ | ||
50 | |||
51 | void (*setup)(struct memory_accessor *, void *context); | ||
52 | void *context; | ||
53 | }; | ||
54 | |||
55 | #endif /* _LINUX_AT24_H */ | ||
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 81cbbdb96aae..673a3ce67f31 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #define __TWL_H_ | 26 | #define __TWL_H_ |
27 | 27 | ||
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | #include <linux/phy/phy.h> | ||
29 | #include <linux/input/matrix_keypad.h> | 30 | #include <linux/input/matrix_keypad.h> |
30 | 31 | ||
31 | /* | 32 | /* |
@@ -615,6 +616,7 @@ enum twl4030_usb_mode { | |||
615 | struct twl4030_usb_data { | 616 | struct twl4030_usb_data { |
616 | enum twl4030_usb_mode usb_mode; | 617 | enum twl4030_usb_mode usb_mode; |
617 | unsigned long features; | 618 | unsigned long features; |
619 | struct phy_init_data *init_data; | ||
618 | 620 | ||
619 | int (*phy_init)(struct device *dev); | 621 | int (*phy_init)(struct device *dev); |
620 | int (*phy_exit)(struct device *dev); | 622 | int (*phy_exit)(struct device *dev); |