mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (57 commits) regulator: Fix 88pm8607.c printk format warning input: Add support for Qualcomm PMIC8XXX power key input: Add Qualcomm pm8xxx keypad controller driver mfd: Add omap-usbhs runtime PM support mfd: Fix ASIC3 SD Host Controller Configuration size mfd: Fix omap_usbhs_alloc_children error handling mfd: Fix omap usbhs crash when rmmoding ehci or ohci mfd: Add ASIC3 LED support leds: Add ASIC3 LED support mfd: Update twl4030-code maintainer e-mail address mfd: Correct the name and bitmask for ab8500-gpadc BTempPullUp mfd: Add manual ab8500-gpadc batt temp activation for AB8500 3.0 mfd: Provide ab8500-core enumerators for chip cuts mfd: Check twl4030-power remove script error condition after i2cwrite mfd: Fix twl6030 irq definitions mfd: Add phoenix lite (twl6025) support to twl6030 mfd: Avoid to use constraint name in 88pm860x regulator driver mfd: Remove checking on max8925 regulator[0] mfd: Remove unused parameter from 88pm860x API mfd: Avoid to allocate 88pm860x static platform data ...
This commit is contained in:
commit
9f1912c48c
93 changed files with 3330 additions and 534 deletions
|
|
@ -16,7 +16,6 @@
|
|||
#include <linux/fb.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/backlight.h>
|
||||
#include <linux/mfd/core.h>
|
||||
#include <linux/mfd/88pm860x.h>
|
||||
|
||||
#define MAX_BRIGHTNESS (0xFF)
|
||||
|
|
@ -168,7 +167,6 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
|
|||
struct pm860x_backlight_pdata *pdata = NULL;
|
||||
struct pm860x_backlight_data *data;
|
||||
struct backlight_device *bl;
|
||||
struct mfd_cell *cell;
|
||||
struct resource *res;
|
||||
struct backlight_properties props;
|
||||
unsigned char value;
|
||||
|
|
@ -181,10 +179,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
cell = pdev->dev.platform_data;
|
||||
if (cell == NULL)
|
||||
return -ENODEV;
|
||||
pdata = cell->mfd_data;
|
||||
pdata = pdev->dev.platform_data;
|
||||
if (pdata == NULL) {
|
||||
dev_err(&pdev->dev, "platform data isn't assigned to "
|
||||
"backlight\n");
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ static irqreturn_t tmiofb_irq(int irq, void *__info)
|
|||
*/
|
||||
static int tmiofb_hw_stop(struct platform_device *dev)
|
||||
{
|
||||
struct tmio_fb_data *data = mfd_get_data(dev);
|
||||
struct tmio_fb_data *data = dev->dev.platform_data;
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
struct tmiofb_par *par = info->par;
|
||||
|
||||
|
|
@ -311,7 +311,7 @@ static int tmiofb_hw_init(struct platform_device *dev)
|
|||
*/
|
||||
static void tmiofb_hw_mode(struct platform_device *dev)
|
||||
{
|
||||
struct tmio_fb_data *data = mfd_get_data(dev);
|
||||
struct tmio_fb_data *data = dev->dev.platform_data;
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
struct fb_videomode *mode = info->mode;
|
||||
struct tmiofb_par *par = info->par;
|
||||
|
|
@ -557,8 +557,7 @@ static int tmiofb_ioctl(struct fb_info *fbi,
|
|||
static struct fb_videomode *
|
||||
tmiofb_find_mode(struct fb_info *info, struct fb_var_screeninfo *var)
|
||||
{
|
||||
struct tmio_fb_data *data =
|
||||
mfd_get_data(to_platform_device(info->device));
|
||||
struct tmio_fb_data *data = info->device->platform_data;
|
||||
struct fb_videomode *best = NULL;
|
||||
int i;
|
||||
|
||||
|
|
@ -578,8 +577,7 @@ static int tmiofb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
|
|||
{
|
||||
|
||||
struct fb_videomode *mode;
|
||||
struct tmio_fb_data *data =
|
||||
mfd_get_data(to_platform_device(info->device));
|
||||
struct tmio_fb_data *data = info->device->platform_data;
|
||||
|
||||
mode = tmiofb_find_mode(info, var);
|
||||
if (!mode || var->bits_per_pixel > 16)
|
||||
|
|
@ -680,7 +678,7 @@ static struct fb_ops tmiofb_ops = {
|
|||
static int __devinit tmiofb_probe(struct platform_device *dev)
|
||||
{
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
struct tmio_fb_data *data = mfd_get_data(dev);
|
||||
struct tmio_fb_data *data = dev->dev.platform_data;
|
||||
struct resource *ccr = platform_get_resource(dev, IORESOURCE_MEM, 1);
|
||||
struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
||||
struct resource *vram = platform_get_resource(dev, IORESOURCE_MEM, 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue