GitHub/LineageOS/android_kernel_motorola_exynos9610.git
11 years agoomapdss: HDMI: add HDMI wrapper IRQ flags
Archit Taneja [Tue, 10 Sep 2013 11:04:02 +0000 (16:34 +0530)]
omapdss: HDMI: add HDMI wrapper IRQ flags

Add flags for the interrupts present in HDMI wrapper block, these will be used
to configure HDMI_IRQENABLE_SET/CLEAR and HDMI_IRQSTATUS registers.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: Clean up the header files
Archit Taneja [Thu, 12 Sep 2013 12:37:49 +0000 (18:07 +0530)]
omapdss: HDMI: Clean up the header files

Keep only OMAP4 HDMI core block related structs and enums in ti_hdmi_4xxx_ip.h,
move the rest to ti_hdmi.h. This holds all library specific data which will be
shared between OMAP4 and OMAP5/DRA7x HDMI encoder drivers.

Move the duplicate register read/write/wait_for_bit_change functions in the hdmi
library files to ti_hdmi.h

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: remove hdmi_ip_data struct
Archit Taneja [Tue, 8 Oct 2013 08:52:03 +0000 (14:22 +0530)]
omapdss: HDMI: remove hdmi_ip_data struct

The struct hdmi_ip_data contains information related to HDMI wrapper, PLL, PHY
and core sub-blocks. Now that each of these sub blocks has it's own struct,
hdmi_ip_data serves no purpose. The mutex lock in the struct was also never
used.

Remove this struct to make things cleaner.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: Use OMAP4 HDMI core functions directly and remove hdmi_ip_ops
Archit Taneja [Tue, 8 Oct 2013 08:46:05 +0000 (14:16 +0530)]
omapdss: HDMI: Use OMAP4 HDMI core functions directly and remove hdmi_ip_ops

After removing wrapper, pll and phy funcs from ti_hdmi_4xxx_ip.c, we are left
with OMAP4 HDMI core functions. Use these directly in hdmi.c rather than using
hdmi_ip_ops. Rename the core functions with a 'hdmi4' suffix.

We used to have hdmi_ip_ops so that one could support HDMI within a TI SoC which
had a non-DSS display subsytem. This however never got put into use, and hence
these ops aren't useful any more.

The DT/hwmod information for hdmi doesn't split the address space according to
the required sub blocks. Keep the address offset and size information in the
driver for now. This will be removed when the driver gets the information
correctly from DT/hwmod.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: create a PHY library
Archit Taneja [Tue, 8 Oct 2013 07:37:00 +0000 (13:07 +0530)]
omapdss: HDMI: create a PHY library

HDMI PHY is a block common to DSS in OMAP4, OMAP5 and DRA7x. Move the
existing functions from ti_hdmi_4xxx_ip.c to a separate file. These funcs are
called directly from the hdmi driver rather than hdmi_ip_ops function pointer
calls.

Add the PHY library function declarations to ti_hdmi.h. These will be shared
amongst the omap4/5 hdmi platform drivers. Remove the PHY function pointer ops
from the ti_hdmi_ip_ops struct.

The DT/hwmod information for hdmi doesn't split the address space according to
the required sub blocks. Keep the address offset and size information in the
driver for now. This will be removed when the driver gets the information
correctly from DT/hwmod.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: create a PLL library
Archit Taneja [Tue, 8 Oct 2013 07:25:26 +0000 (12:55 +0530)]
omapdss: HDMI: create a PLL library

HDMI PLL is a block common to DSS in OMAP4, OMAP5 and DRA7x. Move the
existing PLL functions from ti_hdmi_4xxx_ip.c and hdmi.c to a separate file.
These funcs are called directly from the hdmi driver rather than hdmi_ip_ops
function pointer calls.

Add the PLL library function declarations to ti_hdmi.h. These will be shared
amongst the omap4/5 hdmi platform drivers. Remove the PLL function pointer ops
from the ti_hdmi_ip_ops struct. These will be shared amongst the omap4/5 hdmi
platform drivers and other libraries.

The DT/hwmod information for hdmi doesn't split the address space according to
the required sub blocks. Keep the address offset and size information in the
driver for now. This will be removed when the driver gets the information
correctly from DT/hwmod.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoomapdss: HDMI: create a Wrapper library
Archit Taneja [Tue, 6 Aug 2013 09:26:55 +0000 (14:56 +0530)]
omapdss: HDMI: create a Wrapper library

HDMI wrapper is a block common to DSS in OMAP4, OMAP5 and DRA7x. Move the
existing functions from ti_hdmi_4xxx_ip.c to a separate file. These funcs are
called directly from the hdmi driver rather than hdmi_ip_ops funtion pointer
calls.

Add new wrapper funcs which can be used by other hdmi libraries like core, pll
and phy. Move some of the enums, structs and funcs related to the wrapper from
ti_hdmi_4xxx_ip.h to ti_hdmi.h. These will be shared amongst the omap4/5 hdmi
platform drivers and other libraries.

The old hdmi_wp_init() is removed since it didn't do anything. Timing parameters
like interlace, hsync_level and vsync_level weren't copied correctly before.
Those are copied correctly now.

The DT/hwmod information for hdmi doesn't split the address space according to
the required sub blocks. Keep the address offset and size information in the
driver for now. This will be removed when the driver gets the information
correctly from DT/hwmod.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agosimplefb: print some info about the registered fb
Tom Gundersen [Sat, 7 Sep 2013 14:08:35 +0000 (16:08 +0200)]
simplefb: print some info about the registered fb

This is similar to the output printed by efifb.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: wmt_ge_rops: Fix a trivial typo
Sachin Kamat [Mon, 30 Sep 2013 08:50:20 +0000 (14:20 +0530)]
video: wmt_ge_rops: Fix a trivial typo

Add a missing closing brace for email address.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: wmt_ge_rops: Remove redundant of_match_ptr
Sachin Kamat [Mon, 30 Sep 2013 08:45:33 +0000 (14:15 +0530)]
video: wmt_ge_rops: Remove redundant of_match_ptr

The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: wm8505fb: Remove redundant of_match_ptr
Sachin Kamat [Mon, 30 Sep 2013 08:45:32 +0000 (14:15 +0530)]
video: wm8505fb: Remove redundant of_match_ptr

The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Ed Spiridonov <edo.rus@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: ssd1307fb: Remove redundant of_match_ptr
Sachin Kamat [Mon, 30 Sep 2013 08:45:31 +0000 (14:15 +0530)]
video: ssd1307fb: Remove redundant of_match_ptr

The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: amba-clcd: Remove unnecessary amba_set_drvdata()
Michal Simek [Thu, 3 Oct 2013 09:46:31 +0000 (11:46 +0200)]
video: amba-clcd: Remove unnecessary amba_set_drvdata()

Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.

Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agofbdev: sh_mobile_hdmi: Use devm_kzalloc()
Sangjung Woo [Thu, 3 Oct 2013 14:04:27 +0000 (23:04 +0900)]
fbdev: sh_mobile_hdmi: Use devm_kzalloc()

Use devm_kzalloc() instead of kzalloc() in order to be free
automatically. This makes cleanup paths more simple.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / au1100fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:10 +0000 (13:32 +0800)]
Video / au1100fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / au1200fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:09 +0000 (13:32 +0800)]
Video / au1200fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / bf54x-lq043fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:08 +0000 (13:32 +0800)]
Video / bf54x-lq043fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / broadsheetfb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:07 +0000 (13:32 +0800)]
Video / broadsheetfb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / cobalt_lcdfb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:06 +0000 (13:32 +0800)]
Video / cobalt_lcdfb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / da8xx-fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:05 +0000 (13:32 +0800)]
Video / da8xx-fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / jz4740_fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:04 +0000 (13:32 +0800)]
Video / jz4740_fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / metronomefb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:03 +0000 (13:32 +0800)]
Video / metronomefb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:02 +0000 (13:32 +0800)]
Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoVideo / hecubafb: Use module_platform_driver() to simplify code
Hanjun Guo [Sun, 29 Sep 2013 05:32:01 +0000 (13:32 +0800)]
Video / hecubafb: Use module_platform_driver() to simplify code

Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete dumping of core registers
Ricardo Neri [Fri, 13 Sep 2013 10:29:38 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete dumping of core registers

Add missing register entries when dumping the core.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete register definitions for core
Ricardo Neri [Fri, 13 Sep 2013 10:29:37 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete register definitions for core

Add missing register definitions; mainly for colorspace conversion, video
timing and interrupt handling.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Rename the HDMI_CORE_CTRL1 register
Ricardo Neri [Fri, 13 Sep 2013 10:29:36 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Rename the HDMI_CORE_CTRL1 register

Rename the register to be aligned with the HDMI_CORE_SYS naming convention.
Also, update the naming of the #defines used for its fields.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete dumping of DPLL registers
Ricardo Neri [Fri, 13 Sep 2013 10:29:35 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete dumping of DPLL registers

Add the spread spectrum clock configuration registers to the DPLL dump.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete register definitions for DPLL
Ricardo Neri [Fri, 13 Sep 2013 10:29:34 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete register definitions for DPLL

Add missing register definitions for spread spectrum clocking.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete dumping of wrapper registers
Ricardo Neri [Fri, 13 Sep 2013 10:29:33 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete dumping of wrapper registers

Add missing registers when dumping the HDMI wrapper. Also, order the dump by
offset to improve readability.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: HDMI: OMAP4: Complete register definitions for wrapper
Ricardo Neri [Fri, 13 Sep 2013 10:29:32 +0000 (15:59 +0530)]
OMAPDSS: HDMI: OMAP4: Complete register definitions for wrapper

Add definitions for missing registers in the HDMI wrapper. Also, order
the registers by offset to improve readability.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: add device tree suport
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Mar 2013 18:05:47 +0000 (02:05 +0800)]
video: atmel_lcdfb: add device tree suport

get display timings from device tree
Use videomode helpers to get display timings and configurations from
device tree

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: pass the pdata as params
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Mar 2013 18:05:47 +0000 (02:05 +0800)]
video: atmel_lcdfb: pass the pdata as params

so we can use have list gpio as example (probe via DT)

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: introduce atmel_lcdfb_power_control
Jean-Christophe PLAGNIOL-VILLARD [Thu, 11 Apr 2013 09:54:04 +0000 (17:54 +0800)]
video: atmel_lcdfb: introduce atmel_lcdfb_power_control

to simplify the check on the presence of the callback

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: fix platform data struct
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Mar 2013 14:53:42 +0000 (22:53 +0800)]
video: atmel_lcdfb: fix platform data struct

Today we mix pdata and drivers data in the struct atmel_lcdfb_info
Fix it and introduce a new struct atmel_lcdfb_pdata for platform data only

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: xilinxfb: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:24 +0000 (12:02 +0530)]
video: xilinxfb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: tcx: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:23 +0000 (12:02 +0530)]
video: tcx: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: sunxvr1000: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:22 +0000 (12:02 +0530)]
video: sunxvr1000: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: platinumfb: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:21 +0000 (12:02 +0530)]
video: platinumfb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: p9100: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:20 +0000 (12:02 +0530)]
video: p9100: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: ffb: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:19 +0000 (12:02 +0530)]
video: ffb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: cg6: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:18 +0000 (12:02 +0530)]
video: cg6: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: cg3: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:17 +0000 (12:02 +0530)]
video: cg3: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: cg14: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:16 +0000 (12:02 +0530)]
video: cg14: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: bw2: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:15 +0000 (12:02 +0530)]
video: bw2: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: amifb: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:14 +0000 (12:02 +0530)]
video: amifb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mb862xx: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:13 +0000 (12:02 +0530)]
video: mb862xx: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: leo: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:12 +0000 (12:02 +0530)]
video: leo: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: grvga: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:11 +0000 (12:02 +0530)]
video: grvga: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: Remove redundant dev_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:32:10 +0000 (12:02 +0530)]
video: atmel_lcdfb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: jz4740-fb: Use clk_prepare_enable/clk_disable_unprepare
Lars-Peter Clausen [Sun, 22 Sep 2013 10:01:49 +0000 (12:01 +0200)]
video: jz4740-fb: Use clk_prepare_enable/clk_disable_unprepare

In preparation to switching the jz4740 clk driver to the common clk framework
update the clk enable/disable calls to clk_prepare_enable/clk_disable_unprepare.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: jz4740-fb: Fix LCD_CMD bit definitions
Lars-Peter Clausen [Sun, 22 Sep 2013 10:01:48 +0000 (12:01 +0200)]
video: jz4740-fb: Fix LCD_CMD bit definitions

Fix the bit offsets for the LCD_CMD definitions.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoframebuffer: arkfb: Fix framebugger typo
Joe Perches [Fri, 20 Sep 2013 01:53:13 +0000 (18:53 -0700)]
framebuffer: arkfb: Fix framebugger typo

s/framebugger/framebuffer/

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: riva: Remove incorrect checks
Sachin Kamat [Wed, 25 Sep 2013 12:02:59 +0000 (17:32 +0530)]
video: riva: Remove incorrect checks

'xoffset' and 'yoffset' are unsigned and hence cannot be less than 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: aty: Remove incorrect checks
Sachin Kamat [Wed, 25 Sep 2013 12:02:58 +0000 (17:32 +0530)]
video: aty: Remove incorrect checks

'xoffset' and 'yoffset' are unsigned and hence cannot be less than 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: cirrusfb: Remove incorrect checks
Sachin Kamat [Wed, 25 Sep 2013 12:02:57 +0000 (17:32 +0530)]
video: cirrusfb: Remove incorrect checks

'xoffset' and 'yoffset' are unsigned and hence cannot be less than 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: vfb: Remove incorrect check
Sachin Kamat [Wed, 25 Sep 2013 12:02:56 +0000 (17:32 +0530)]
video: vfb: Remove incorrect check

'yoffset' is unsigned and hence cannot be less than 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: uvesafb: Remove redundant NULL check
Sachin Kamat [Wed, 25 Sep 2013 11:29:54 +0000 (16:59 +0530)]
video: uvesafb: Remove redundant NULL check

kfree on a NULL pointer is a no-op.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Michal Januszewski <spock@gentoo.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: kyro: Remove redundant break
Sachin Kamat [Wed, 25 Sep 2013 11:29:53 +0000 (16:59 +0530)]
video: kyro: Remove redundant break

'break' after return statement is redundant. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: aty: Remove redundant break
Sachin Kamat [Wed, 25 Sep 2013 11:29:52 +0000 (16:59 +0530)]
video: aty: Remove redundant break

'break' after return statement is redundant. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: da8xx-fb: Staticize reg_context
Sachin Kamat [Wed, 25 Sep 2013 11:29:51 +0000 (16:59 +0530)]
video: da8xx-fb: Staticize reg_context

'reg_context' is local to this file. Make it static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: smscufx: Use NULL instead of 0
Sachin Kamat [Wed, 25 Sep 2013 11:29:50 +0000 (16:59 +0530)]
video: smscufx: Use NULL instead of 0

'info' is a pointer. Use NULL instead of 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: udlfb: Use NULL instead of 0
Sachin Kamat [Wed, 25 Sep 2013 11:29:49 +0000 (16:59 +0530)]
video: udlfb: Use NULL instead of 0

new_back is a pointer. Use NULL instead of 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agobacklight: tosa: Remove redundant spi_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:38:53 +0000 (12:08 +0530)]
backlight: tosa: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agobacklight: l4f00242t03: Remove redundant spi_set_drvdata
Sachin Kamat [Fri, 20 Sep 2013 06:38:52 +0000 (12:08 +0530)]
backlight: l4f00242t03: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoOMAPDSS: DISPC: Fix assignment of 0/1 to bool variables
Peter Senna Tschudin [Sun, 22 Sep 2013 18:44:11 +0000 (20:44 +0200)]
OMAPDSS: DISPC: Fix assignment of 0/1 to bool variables

Convert 0 to false and 1 to true when assigning values to bool
variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2.

The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):

@@
bool b;
@@
(
-b = 0
+b = false
|
-b = 1
+b = true
)

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mmp: add pitch info in mmp_win structure
Jing Xiang [Fri, 13 Sep 2013 06:59:49 +0000 (14:59 +0800)]
video: mmp: add pitch info in mmp_win structure

Add pitch length info of graphics/video layer, pitch is used
to represent line length in byte, the usage depends on pix_fmt.
If the fmt is YUV, the pitch[0] will be Y length,pitch[1]
will be U length, pitch[2] will be V lenth.
If the fmt is RGB, the picth[0] will be line lenth, and
pitch[1]/pitch[2] will be 0 and not be used.

Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mmp: calculate pitch value when fb set win
Jing Xiang [Fri, 13 Sep 2013 06:59:48 +0000 (14:59 +0800)]
video: mmp: calculate pitch value when fb set win

Add new func mmpfb_set_win to make code clean, it will do resolution
and fmt setting of win in mmpfb_set_win.

Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mmp: optimize some register setting code
Guoqing Li [Fri, 13 Sep 2013 06:59:47 +0000 (14:59 +0800)]
video: mmp: optimize some register setting code

There are dumplicate code of the smooth setting based on different
path, optimized the routine and use readl_relaxed instead.

Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Guoqing Li <ligq@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoARM: mmp: remove the legacy rbswap setting for ttc_dkb platform
Jett.Zhou [Fri, 13 Sep 2013 06:59:46 +0000 (14:59 +0800)]
ARM: mmp: remove the legacy rbswap setting for ttc_dkb platform

According to new rbswap scheme of mmp_display, it support appropriate
rbswap setting based on specific pix_fmt, then we can remove the legacy
rbswap setting for ttc_dkb platform.

Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mmp: rb swap setting update for mmp display
Guoqing Li [Fri, 13 Sep 2013 06:59:45 +0000 (14:59 +0800)]
video: mmp: rb swap setting update for mmp display

We could set rb swap in two modules: DMA controler input part and
dsi interface output part.
DMA input part is based on pix_fmt to set rbswap, dsi output interface
part will set rbswap based on platform dsi_rbswap configuration.

This patch include below change and enhancement:

1) The input format which support rbswap is based on RGB format,
eg. RGB565 indicates the source data in memory is that Red is [15~11],
Green is [10~5], Blue is [4:0], Red is MSB, Blue is LSB, but for the
display dma input default setting(rbswap = 0), it only support Blue
is [15~11], Green is [10~5], Red is [4:0], Red is LSB, Blue is MSB,
so for this format(RGB565), display controller need to set rbswap
 = 1 and it can support the MSB/LSB correctly.
BGR/YUV format will not set it in mmp display driver.

2) The dsi output part of rbswap is depend on dsi_rbswap which is
defined in specific platfrom. For output dsi interface, it has this
feature to do rbswap again if it needs specifc byte sequence of RGB
byte for DSI panel.
eg. If display content is set RGB565 in memory and DMA input part set
rbswap in driver to support Red as MSB , Blue LSB, but dsi panel only
support Red as LSB, Blue as MSB, then it can use this feature.
If there is no this requirement of panel, this dsi output part is not
needed.

Signed-off-by: Guoqing Li <ligq@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: w100fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:11:55 +0000 (14:11 +0900)]
video: w100fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: tmiofb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:11:34 +0000 (14:11 +0900)]
video: tmiofb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: simplefb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:11:04 +0000 (14:11 +0900)]
video: simplefb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: s3c-fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:10:37 +0000 (14:10 +0900)]
video: s3c-fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: s1d13xxxfb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:10:19 +0000 (14:10 +0900)]
video: s1d13xxxfb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mbxfb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:09:37 +0000 (14:09 +0900)]
video: mbxfb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: imxfb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:08:58 +0000 (14:08 +0900)]
video: imxfb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: ep93xx-fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:08:14 +0000 (14:08 +0900)]
video: ep93xx-fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: da8xx-fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:04:50 +0000 (14:04 +0900)]
video: da8xx-fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: amba-clcd: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:03:53 +0000 (14:03 +0900)]
video: amba-clcd: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: sh_mobile_hdmi: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:03:19 +0000 (14:03 +0900)]
video: sh_mobile_hdmi: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: sa1100fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:02:24 +0000 (14:02 +0900)]
video: sa1100fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: s3c2410: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:01:38 +0000 (14:01 +0900)]
video: s3c2410: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: pxafb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:01:01 +0000 (14:01 +0900)]
video: pxafb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: pxa168fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 04:59:59 +0000 (13:59 +0900)]
video: pxa168fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: omapfb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 04:58:58 +0000 (13:58 +0900)]
video: omapfb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: nuc900fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 04:58:33 +0000 (13:58 +0900)]
video: nuc900fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: mx3fb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 04:57:22 +0000 (13:57 +0900)]
video: mx3fb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: atmel_lcdfb: use dev_get_platdata()
Jingoo Han [Tue, 17 Sep 2013 05:06:39 +0000 (14:06 +0900)]
video: atmel_lcdfb: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Also, unnecessary casting from return value that is a void pointer
is removed.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agoradeon: Conditionally compile PM code
Thierry Reding [Wed, 18 Sep 2013 12:48:32 +0000 (14:48 +0200)]
radeon: Conditionally compile PM code

The power management code is only used on X86 and PowerMac. To prevent
the compiler from warning about unused code, only build when PM and one
of X86 or PowerMac is selected.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: grvga: Use module_platform_driver
Sachin Kamat [Fri, 20 Sep 2013 06:35:38 +0000 (12:05 +0530)]
video: grvga: Use module_platform_driver

module_platform_driver removes some boilerplate code and makes
it simple.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo/matrox/matroxfb_maven: Use module_i2c_driver to register driver
Peter Huewe [Fri, 13 Sep 2013 19:51:50 +0000 (21:51 +0200)]
video/matrox/matroxfb_maven: Use module_i2c_driver to register driver

Removing some boilerplate by using module_i2c_driver instead of calling
register and unregister in the otherwise empty init/exit functions.
Also removed a useless comment as suggested by Jean Delvare.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: vt8623fb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 07:01:53 +0000 (16:01 +0900)]
video: vt8623fb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: tridentfb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 07:01:18 +0000 (16:01 +0900)]
video: tridentfb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: tdfxfb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 07:00:58 +0000 (16:00 +0900)]
video: tdfxfb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: sisfb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 07:00:31 +0000 (16:00 +0900)]
video: sisfb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: savagefb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 06:59:43 +0000 (15:59 +0900)]
video: savagefb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: s3fb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 06:59:13 +0000 (15:59 +0900)]
video: s3fb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
11 years agovideo: pm3fb: remove unnecessary pci_set_drvdata()
Jingoo Han [Thu, 12 Sep 2013 06:58:44 +0000 (15:58 +0900)]
video: pm3fb: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>