aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRom Lemarchand <rlemarchand@sta.samsung.com>2011-03-09 15:17:30 -0800
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:53:22 -0800
commit60a669f36c65c31d0d2f4164f7ae98646d36f950 (patch)
treef3ad2d2a2bb2ee1a369c17a16d41fa781822b33e
parent21078da15ecbbf246764b29bb72ba10aac7b7b79 (diff)
downloadkernel_samsung_crespo-60a669f36c65c31d0d2f4164f7ae98646d36f950.zip
kernel_samsung_crespo-60a669f36c65c31d0d2f4164f7ae98646d36f950.tar.gz
kernel_samsung_crespo-60a669f36c65c31d0d2f4164f7ae98646d36f950.tar.bz2
ARM: S5PC11X: Add herring_ prefix to herring version macros
Adding herring_ prefix to the herring version checking macros. Change-Id: Ieec80d5e64d454c7a4b7beb18b3c7e516aeed375 Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
-rwxr-xr-xarch/arm/mach-s5pv210/dev-herring-phone.c2
-rw-r--r--arch/arm/mach-s5pv210/herring-touchkey-led.c2
-rwxr-xr-xarch/arm/mach-s5pv210/herring.h6
-rwxr-xr-xarch/arm/mach-s5pv210/mach-herring.c36
-rwxr-xr-xsound/soc/codecs/wm8994_herring.c4
5 files changed, 25 insertions, 25 deletions
diff --git a/arch/arm/mach-s5pv210/dev-herring-phone.c b/arch/arm/mach-s5pv210/dev-herring-phone.c
index 2b4aaa6..f8798b3 100755
--- a/arch/arm/mach-s5pv210/dev-herring-phone.c
+++ b/arch/arm/mach-s5pv210/dev-herring-phone.c
@@ -67,7 +67,7 @@ static struct platform_device modemctl = {
static int __init herring_init_phone_interface(void)
{
/* CDMA device */
- if (is_cdma_wimax_dev())
+ if (herring_is_cdma_wimax_dev())
mdmctl_data.is_cdma_modem = 1;
platform_device_register(&modemctl);
diff --git a/arch/arm/mach-s5pv210/herring-touchkey-led.c b/arch/arm/mach-s5pv210/herring-touchkey-led.c
index 4270117..b36e0f0 100644
--- a/arch/arm/mach-s5pv210/herring-touchkey-led.c
+++ b/arch/arm/mach-s5pv210/herring-touchkey-led.c
@@ -50,7 +50,7 @@ static int __init herring_init_touchkey_led(void)
int i;
int ret = 0;
- if (!machine_is_herring() || !is_tft_dev())
+ if (!machine_is_herring() || !herring_is_tft_dev())
return 0;
for (i = 0; i < ARRAY_SIZE(led_gpios); i++) {
diff --git a/arch/arm/mach-s5pv210/herring.h b/arch/arm/mach-s5pv210/herring.h
index f323291..53da88a 100755
--- a/arch/arm/mach-s5pv210/herring.h
+++ b/arch/arm/mach-s5pv210/herring.h
@@ -12,9 +12,9 @@ struct uart_port;
void herring_bt_uart_wake_peer(struct uart_port *port);
extern void s3c_setup_uart_cfg_gpio(unsigned char port);
-#define is_cdma_wimax_dev() (!!((system_rev & 0xFFF0) == 0x20))
-#define is_cdma_wimax_rev0() (!!((system_rev & 0xFFFF) == 0x20))
-#define is_tft_dev() (system_rev >= 0x30)
+#define herring_is_cdma_wimax_dev() (!!((system_rev & 0xFFF0) == 0x20))
+#define herring_is_cdma_wimax_rev0() (!!((system_rev & 0xFFFF) == 0x20))
+#define herring_is_tft_dev() (system_rev >= 0x30)
extern struct s5p_panel_data herring_panel_data;
extern struct s5p_tft_panel_data herring_sony_panel_data;
diff --git a/arch/arm/mach-s5pv210/mach-herring.c b/arch/arm/mach-s5pv210/mach-herring.c
index ddbcdf2..5f72aba 100755
--- a/arch/arm/mach-s5pv210/mach-herring.c
+++ b/arch/arm/mach-s5pv210/mach-herring.c
@@ -201,7 +201,7 @@ static void uart_switch_init(void)
s3c_gpio_setpull(GPIO_UART_SEL, S3C_GPIO_PULL_NONE);
s3c_gpio_cfgpin(GPIO_UART_SEL, S3C_GPIO_OUTPUT);
- if (is_cdma_wimax_dev())
+ if (herring_is_cdma_wimax_dev())
gpio_direction_output(GPIO_UART_SEL, 0);
else
gpio_direction_output(GPIO_UART_SEL, 1);
@@ -210,7 +210,7 @@ static void uart_switch_init(void)
gpio_export_link(uartswitch_dev, "UART_SEL", GPIO_UART_SEL);
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
ret = gpio_request(GPIO_UART_SEL1, "UART_SEL1");
if (ret < 0) {
pr_err("Failed to request GPIO_UART_SEL1!\n");
@@ -969,7 +969,7 @@ static struct max8998_charger_data herring_charger = {
static void set_adc_table(void)
{
- if (!is_tft_dev()) {
+ if (!herring_is_tft_dev()) {
herring_charger.adc_table = temper_table_oled;
herring_charger.adc_array_size =
ARRAY_SIZE(temper_table_oled);
@@ -1057,7 +1057,7 @@ static void panel_cfg_gpio(struct platform_device *pdev)
s3c_gpio_setpull(S5PV210_MP04(3), S3C_GPIO_PULL_NONE);
/* OLED_ID */
- if (is_tft_dev()) {
+ if (herring_is_tft_dev()) {
s3c_gpio_cfgpin(GPIO_OLED_ID, S3C_GPIO_INPUT);
s3c_gpio_setpull(GPIO_OLED_ID, S3C_GPIO_PULL_DOWN);
}
@@ -1128,7 +1128,7 @@ void lcd_cfg_gpio_early_suspend(void)
gpio_set_value(GPIO_DISPLAY_SI, 0);
/* OLED_ID */
- if (!is_tft_dev()) {
+ if (!herring_is_tft_dev()) {
s3c_gpio_cfgpin(GPIO_OLED_ID, S3C_GPIO_INPUT);
s3c_gpio_setpull(GPIO_OLED_ID, S3C_GPIO_PULL_DOWN);
/* gpio_set_value(GPIO_OLED_ID, 0); */
@@ -1147,7 +1147,7 @@ void lcd_cfg_gpio_late_resume(void)
s3c_gpio_cfgpin(GPIO_OLED_DET, S3C_GPIO_INPUT);
s3c_gpio_setpull(GPIO_OLED_DET, S3C_GPIO_PULL_NONE);
/* OLED_ID */
- if (!is_tft_dev()) {
+ if (!herring_is_tft_dev()) {
s3c_gpio_cfgpin(GPIO_OLED_ID, S3C_GPIO_OUTPUT);
s3c_gpio_setpull(GPIO_OLED_ID, S3C_GPIO_PULL_NONE);
/* gpio_set_value(GPIO_OLED_ID, 0); */
@@ -2412,7 +2412,7 @@ static struct i2c_board_info i2c_devs2[] __initdata = {
static void mxt224_init(void)
{
- if (!is_tft_dev())
+ if (!herring_is_tft_dev())
return;
mxt224_data.max_y = 950;
t9_config[8] = 45;
@@ -3947,7 +3947,7 @@ void s3c_config_gpio_table(void)
}
}
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
/* WiMAX_I2C_CON */
gpio = S5PV210_GPC1(1);
s3c_gpio_cfgpin(gpio, S3C_GPIO_OUTPUT);
@@ -4000,7 +4000,7 @@ static void herring_power_off(void)
{
int phone_wait_cnt = 0;
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
/* confirm phone is powered-off */
while (1) {
if (gpio_get_value(GPIO_PHONE_ACTIVE)) {
@@ -4332,7 +4332,7 @@ void s3c_config_sleep_gpio(void)
s3c_gpio_cfgpin(S5PV210_GPH0(1), S3C_GPIO_INPUT);
s3c_gpio_setpull(S5PV210_GPH0(1), S3C_GPIO_PULL_NONE);
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
s3c_gpio_cfgpin(S5PV210_GPH0(1), S3C_GPIO_INPUT);
s3c_gpio_setpull(S5PV210_GPH0(1), S3C_GPIO_PULL_NONE);
}
@@ -4788,7 +4788,7 @@ static void herring_init_gpio(void)
s3c_config_gpio_table();
s3c_config_sleep_gpio_table(ARRAY_SIZE(herring_sleep_gpio_table),
herring_sleep_gpio_table);
- if (is_cdma_wimax_dev())
+ if (herring_is_cdma_wimax_dev())
s3c_config_sleep_gpio_table(
ARRAY_SIZE(herring_cdma_wimax_sleep_gpio_table),
herring_cdma_wimax_sleep_gpio_table);
@@ -4797,7 +4797,7 @@ static void herring_init_gpio(void)
static void __init fsa9480_gpio_init(void)
{
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
s3c_gpio_cfgpin(GPIO_USB_HS_SEL, S3C_GPIO_OUTPUT);
gpio_set_value(GPIO_USB_HS_SEL, 1);
} else {
@@ -4848,7 +4848,7 @@ static s8 accel_rotation_wimax_rev0[9] = {
static void __init accel_init(void)
{
- if (is_cdma_wimax_rev0())
+ if (herring_is_cdma_wimax_rev0())
kr3dm_data.rotation = accel_rotation_wimax_rev0;
}
@@ -4899,7 +4899,7 @@ static void __init herring_machine_init(void)
setup_ram_console_mem();
s3c_usb_set_serial();
platform_add_devices(herring_devices, ARRAY_SIZE(herring_devices));
- if (!is_tft_dev())
+ if (!herring_is_tft_dev())
platform_device_register(&herring_i2c5_device);
/* Find out S5PC110 chip version */
@@ -4949,7 +4949,7 @@ static void __init herring_machine_init(void)
/* H/W I2C lines */
if (system_rev >= 0x05) {
/* gyro sensor */
- if (is_cdma_wimax_dev() && is_cdma_wimax_rev0())
+ if (herring_is_cdma_wimax_dev() && herring_is_cdma_wimax_rev0())
i2c_register_board_info(5, i2c_devs0,
ARRAY_SIZE(i2c_devs0));
else
@@ -4968,7 +4968,7 @@ static void __init herring_machine_init(void)
if (system_rev == 0x04)
i2c_register_board_info(5, i2c_devs5, ARRAY_SIZE(i2c_devs5));
i2c_register_board_info(6, i2c_devs6, ARRAY_SIZE(i2c_devs6));
- if (!is_tft_dev()) {
+ if (!herring_is_tft_dev()) {
/* Touch Key */
touch_keypad_gpio_init();
i2c_register_board_info(10, i2c_devs10, ARRAY_SIZE(i2c_devs10));
@@ -4995,12 +4995,12 @@ static void __init herring_machine_init(void)
i2c_register_board_info(14, i2c_devs14, ARRAY_SIZE(i2c_devs14));
/* max8893 wimax PMIC */
- if (is_cdma_wimax_dev()) {
+ if (herring_is_cdma_wimax_dev()) {
platform_device_register(&herring_i2c15_device);
i2c_register_board_info(15, i2c_devs15, ARRAY_SIZE(i2c_devs15));
}
- if (!is_tft_dev()) {
+ if (!herring_is_tft_dev()) {
spi_register_board_info(spi_board_info,
ARRAY_SIZE(spi_board_info));
s3cfb_set_platdata(&tl2796_data);
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c
index 5b71304..5b0fa2c 100755
--- a/sound/soc/codecs/wm8994_herring.c
+++ b/sound/soc/codecs/wm8994_herring.c
@@ -2170,7 +2170,7 @@ static void wm8994_set_gsm_voicecall_common_setting(struct snd_soc_codec *codec)
void wm8994_set_voicecall_common_setting(struct snd_soc_codec *codec)
{
- if (is_cdma_wimax_dev())
+ if (herring_is_cdma_wimax_dev())
wm8994_set_cdma_voicecall_common_setting(codec);
else
wm8994_set_gsm_voicecall_common_setting(codec);
@@ -2393,7 +2393,7 @@ static void wm8994_set_gsm_voicecall_receiver(struct snd_soc_codec *codec)
void wm8994_set_voicecall_receiver(struct snd_soc_codec *codec)
{
- if (is_cdma_wimax_dev())
+ if (herring_is_cdma_wimax_dev())
wm8994_set_cdma_voicecall_receiver(codec);
else
wm8994_set_gsm_voicecall_receiver(codec);