From f19b121e21c1b032f6c612d2b9b499151f7b661b Mon Sep 17 00:00:00 2001 From: "akpm@linux-foundation.org" Date: Tue, 8 May 2007 00:31:22 -0700 Subject: Driver for the Maxim DS1WM, a 1-wire bus master ASIC core Cc: Matt Reimer [akpm@linux-foundation.org: kconfig update] Signed-off-by: Matt Reimer Signed-off-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/ds1wm.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/linux/ds1wm.h (limited to 'include/linux/ds1wm.h') diff --git a/include/linux/ds1wm.h b/include/linux/ds1wm.h new file mode 100644 index 00000000000..31f6e3c427f --- /dev/null +++ b/include/linux/ds1wm.h @@ -0,0 +1,11 @@ +/* platform data for the DS1WM driver */ + +struct ds1wm_platform_data { + int bus_shift; /* number of shifts needed to calculate the + * offset between DS1WM registers; + * e.g. on h5xxx and h2200 this is 2 + * (registers aligned to 4-byte boundaries), + * while on hx4700 this is 1 */ + void (*enable)(struct platform_device *pdev); + void (*disable)(struct platform_device *pdev); +}; -- cgit v1.2.3