The patch titled lis3lv02d: axis remap and resource setup/release has been added to the -mm tree. Its filename is lis3lv02d-axis-remap-and-resource-setup-release.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: lis3lv02d: axis remap and resource setup/release From: Samu Onkalo <samu.p.onkalo@xxxxxxxxx> Add the possibility to remap axes via platform data. Function pointers for resource setup and release purposes Signed-off-by: Samu Onkalo <samu.p.onkalo@xxxxxxxxx> Acked-by: Éric Piel <eric.piel@xxxxxxxxxxxxxxxx> Cc: Pavel Machek <pavel@xxxxxx> Cc: Jean Delvare <khali@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/lis3lv02d.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff -puN include/linux/lis3lv02d.h~lis3lv02d-axis-remap-and-resource-setup-release include/linux/lis3lv02d.h --- a/include/linux/lis3lv02d.h~lis3lv02d-axis-remap-and-resource-setup-release +++ a/include/linux/lis3lv02d.h @@ -43,6 +43,18 @@ struct lis3lv02d_platform_data { #define LIS3_WAKEUP_Z_HI (1 << 5) unsigned char wakeup_flags; unsigned char wakeup_thresh; +#define LIS3_NO_MAP 0 +#define LIS3_DEV_X 1 +#define LIS3_DEV_Y 2 +#define LIS3_DEV_Z 3 +#define LIS3_INV_DEV_X -1 +#define LIS3_INV_DEV_Y -2 +#define LIS3_INV_DEV_Z -3 + s8 axis_x; + s8 axis_y; + s8 axis_z; + int (*setup_resources)(void); + int (*release_resources)(void); }; #endif /* __LIS3LV02D_H_ */ _ Patches currently in -mm which might be from samu.p.onkalo@xxxxxxxxx are lis3lv02d-axis-remap-and-resource-setup-release.patch lis3lv02d-i2c-support.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html