From 657eee7d25fb1422422ca32d5619185ae56a245d Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Mon, 29 Apr 2013 16:17:14 -0700
Subject: media: coda: use genalloc API
This patch depends on "genalloc: add devres support, allow to find a
managed pool by device", which provides the of_get_named_gen_pool and
dev_get_gen_pool functions.
Signed-off-by: Philipp Zabel
Acked-by: Javier Martin
Acked-by: Grant Likely
Cc: Michal Simek
Cc: Dong Aisheng
Cc: Fabio Estevam
Cc: Greg Kroah-Hartman
Cc: Huang Shijie
Cc: Matt Porter
Cc: Paul Gortmaker
Cc: Rob Herring
Cc: Shawn Guo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
include/linux/platform_data/coda.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 include/linux/platform_data/coda.h
(limited to 'include/linux/platform_data')
diff --git a/include/linux/platform_data/coda.h b/include/linux/platform_data/coda.h
new file mode 100644
index 000000000000..6ad4410d9e20
--- /dev/null
+++ b/include/linux/platform_data/coda.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2013 Philipp Zabel, Pengutronix
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+#ifndef PLATFORM_CODA_H
+#define PLATFORM_CODA_H
+
+struct device;
+
+struct coda_platform_data {
+ struct device *iram_dev;
+};
+
+#endif
--
cgit v1.2.3
From 600ffd33d09e3803d81607d3404a8cad709160e4 Mon Sep 17 00:00:00 2001
From: "Kim, Milo"
Date: Mon, 29 Apr 2013 16:18:02 -0700
Subject: backlight: lp855x: convert a type of device name
Configurable data, backlight device name is set to constant character type.
Signed-off-by: Milo(Woogyom) Kim
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
include/linux/platform_data/lp855x.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'include/linux/platform_data')
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h
index 20ee8b221dbd..d135939d392a 100644
--- a/include/linux/platform_data/lp855x.h
+++ b/include/linux/platform_data/lp855x.h
@@ -128,7 +128,7 @@ struct lp855x_rom_data {
* @rom_data : list of new eeprom/eprom registers
*/
struct lp855x_platform_data {
- char *name;
+ const char *name;
enum lp855x_brightness_ctrl_mode mode;
u8 device_control;
int initial_brightness;
--
cgit v1.2.3
From 0b8185733966c1863b6b90ca2697327118ce5032 Mon Sep 17 00:00:00 2001
From: "Kim, Milo"
Date: Mon, 29 Apr 2013 16:18:03 -0700
Subject: backlight: lp855x: move backlight mode platform data
The brightness of LP855x devices is controlled by I2C register or PWM
input . This mode was selected through the platform data, but it can be
chosen by the driver internally without platform data configuration.
How to decide the control mode:
If the PWM period has specific value, the mode is PWM input.
On the other hand, the mode is register-based.
This mode selection is done on the _probe().
Move 'mode' from a header file to the driver private data structure,
'lp855 x'. And correlated code was replaced.
Signed-off-by: Milo(Woogyom) Kim
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
include/linux/platform_data/lp855x.h | 7 -------
1 file changed, 7 deletions(-)
(limited to 'include/linux/platform_data')
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h
index d135939d392a..e0954dfea7ee 100644
--- a/include/linux/platform_data/lp855x.h
+++ b/include/linux/platform_data/lp855x.h
@@ -69,11 +69,6 @@ enum lp855x_chip_id {
LP8557,
};
-enum lp855x_brightness_ctrl_mode {
- PWM_BASED = 1,
- REGISTER_BASED,
-};
-
enum lp8550_brighntess_source {
LP8550_PWM_ONLY,
LP8550_I2C_ONLY = 2,
@@ -116,7 +111,6 @@ struct lp855x_rom_data {
/**
* struct lp855x_platform_data
* @name : Backlight driver name. If it is not defined, default name is set.
- * @mode : brightness control by pwm or lp855x register
* @device_control : value of DEVICE CONTROL register
* @initial_brightness : initial value of backlight brightness
* @period_ns : platform specific pwm period value. unit is nano.
@@ -129,7 +123,6 @@ struct lp855x_rom_data {
*/
struct lp855x_platform_data {
const char *name;
- enum lp855x_brightness_ctrl_mode mode;
u8 device_control;
int initial_brightness;
unsigned int period_ns;
--
cgit v1.2.3
From 98e35be2badd7a499a001a0681d1904f8c56f3e6 Mon Sep 17 00:00:00 2001
From: "Kim, Milo"
Date: Mon, 29 Apr 2013 16:18:04 -0700
Subject: backlight: lp855x: fix initial brightness type
Valid range of the brightness is from 0 to 255, so initial brightness
is changed from integer to u8.
Signed-off-by: Milo(Woogyom) Kim
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
include/linux/platform_data/lp855x.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'include/linux/platform_data')
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h
index e0954dfea7ee..a4ed0bd65fda 100644
--- a/include/linux/platform_data/lp855x.h
+++ b/include/linux/platform_data/lp855x.h
@@ -124,7 +124,7 @@ struct lp855x_rom_data {
struct lp855x_platform_data {
const char *name;
u8 device_control;
- int initial_brightness;
+ u8 initial_brightness;
unsigned int period_ns;
u8 load_new_rom_data;
int size_program;
--
cgit v1.2.3
From c365e59d47b75c5f288f7e63d95dc0c9abcfe516 Mon Sep 17 00:00:00 2001
From: "Kim, Milo"
Date: Mon, 29 Apr 2013 16:18:05 -0700
Subject: backlight: lp855x: remove duplicate platform data
The 'load_new_rom_data' was used for checking whether new ROM data should
be updated or not.
However, we can decide it with 'size_program' data. If the size is
greater than 0, it means updating ROM area is required. Otherwise, the
default ROM data will be used. Therefore, this duplicate platform data
can be removed.
Signed-off-by: Milo(Woogyom) Kim
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
include/linux/platform_data/lp855x.h | 4 ----
1 file changed, 4 deletions(-)
(limited to 'include/linux/platform_data')
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h
index a4ed0bd65fda..ea3200527dd3 100644
--- a/include/linux/platform_data/lp855x.h
+++ b/include/linux/platform_data/lp855x.h
@@ -115,9 +115,6 @@ struct lp855x_rom_data {
* @initial_brightness : initial value of backlight brightness
* @period_ns : platform specific pwm period value. unit is nano.
Only valid when mode is PWM_BASED.
- * @load_new_rom_data :
- 0 : use default configuration data
- 1 : update values of eeprom or eprom registers on loading driver
* @size_program : total size of lp855x_rom_data
* @rom_data : list of new eeprom/eprom registers
*/
@@ -126,7 +123,6 @@ struct lp855x_platform_data {
u8 device_control;
u8 initial_brightness;
unsigned int period_ns;
- u8 load_new_rom_data;
int size_program;
struct lp855x_rom_data *rom_data;
};
--
cgit v1.2.3