提交 1ea74014 编写于 作者: S Sonic Zhang 提交者: Dmitry Torokhov

Input: bfin_rotary - move platform header to linux/platform_data

The platform data definition of the rotary driver should be generic for all
architectures.
Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 5ec662e7
...@@ -666,7 +666,7 @@ static struct platform_device bfin_sport1_uart_device = { ...@@ -666,7 +666,7 @@ static struct platform_device bfin_sport1_uart_device = {
#endif #endif
#if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY)
#include <asm/bfin_rotary.h> #include <linux/platform_data/bfin_rotary.h>
static struct bfin_rotary_platform_data bfin_rotary_data = { static struct bfin_rotary_platform_data bfin_rotary_data = {
/*.rotary_up_key = KEY_UP,*/ /*.rotary_up_key = KEY_UP,*/
......
...@@ -1092,7 +1092,7 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -1092,7 +1092,7 @@ static struct platform_device bfin_device_gpiokeys = {
#endif #endif
#if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY)
#include <asm/bfin_rotary.h> #include <linux/platform_data/bfin_rotary.h>
static struct bfin_rotary_platform_data bfin_rotary_data = { static struct bfin_rotary_platform_data bfin_rotary_data = {
/*.rotary_up_key = KEY_UP,*/ /*.rotary_up_key = KEY_UP,*/
......
...@@ -159,7 +159,7 @@ static struct platform_device bf54x_kpad_device = { ...@@ -159,7 +159,7 @@ static struct platform_device bf54x_kpad_device = {
#endif #endif
#if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY)
#include <asm/bfin_rotary.h> #include <linux/platform_data/bfin_rotary.h>
static struct bfin_rotary_platform_data bfin_rotary_data = { static struct bfin_rotary_platform_data bfin_rotary_data = {
/*.rotary_up_key = KEY_UP,*/ /*.rotary_up_key = KEY_UP,*/
......
...@@ -75,7 +75,7 @@ static struct platform_device bfin_isp1760_device = { ...@@ -75,7 +75,7 @@ static struct platform_device bfin_isp1760_device = {
#endif #endif
#if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY)
#include <asm/bfin_rotary.h> #include <linux/platform_data/bfin_rotary.h>
static struct bfin_rotary_platform_data bfin_rotary_data = { static struct bfin_rotary_platform_data bfin_rotary_data = {
/*.rotary_up_key = KEY_UP,*/ /*.rotary_up_key = KEY_UP,*/
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/input.h> #include <linux/input.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/platform_data/bfin_rotary.h>
#include <asm/portmux.h> #include <asm/portmux.h>
#include <asm/bfin_rotary.h>
static const u16 per_cnt[] = { static const u16 per_cnt[] = {
P_CNT_CUD, P_CNT_CUD,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册