All of lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@nokia.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Krzysztof Helt <krzysztof.h1@poczta.fm>,
	Antonino Daplas <adaplas@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	Tomi Valkeinen <Tomi.Valkeinen@nokia.com>
Subject: [PATCH 18/20] omapfb: Fix coding style / remove dead line
Date: Wed, 24 Jun 2009 14:33:43 +0300	[thread overview]
Message-ID: <d724e13a36e386e87474ecc9f20fc8d07f22512d.1245842329.git.imre.deak@nokia.com> (raw)
In-Reply-To: <f9ed866c0fe8112e1b18f2b90a52e41b23413982.1245842329.git.imre.deak@nokia.com>
In-Reply-To: <34904fad6190ff9d35eb942460ece639f4b7d58f.1245842329.git.imre.deak@nokia.com>

From: arun c <arunedarath@mistralsolutions.com>

- use __iomem type attribute where appropriate
- expand (a ? : b) to (a ? a : b)
As suggested by Russel King <linux@arm.linux.org.uk>

- remove a dead line from omapfb_main.c

Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
---
 arch/arm/plat-omap/include/mach/omapfb.h |    4 ++--
 drivers/video/omap/omapfb_main.c         |    5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/arm/plat-omap/include/mach/omapfb.h b/arch/arm/plat-omap/include/mach/omapfb.h
index 7b74d12..b226bdf 100644
--- a/arch/arm/plat-omap/include/mach/omapfb.h
+++ b/arch/arm/plat-omap/include/mach/omapfb.h
@@ -276,8 +276,8 @@ typedef int (*omapfb_notifier_callback_t)(struct notifier_block *,
 					  void *fbi);
 
 struct omapfb_mem_region {
-	dma_addr_t	paddr;
-	void		*vaddr;
+	u32		paddr;
+	void __iomem	*vaddr;
 	unsigned long	size;
 	u8		type;		/* OMAPFB_PLANE_MEM_* */
 	unsigned	alloc:1;	/* allocated by the driver */
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index 098177b..0df4523 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -562,7 +562,6 @@ static int set_fb_var(struct fb_info *fbi,
 		var->xoffset = var->xres_virtual - var->xres;
 	if (var->yres + var->yoffset > var->yres_virtual)
 		var->yoffset = var->yres_virtual - var->yres;
-	line_size = var->xres * bpp / 8;
 
 	if (plane->color_mode == OMAPFB_COLOR_RGB444) {
 		var->red.offset	  = 8; var->red.length	 = 4;
@@ -1719,8 +1718,8 @@ static int omapfb_do_probe(struct platform_device *pdev,
 
 	pr_info("omapfb: configured for panel %s\n", fbdev->panel->name);
 
-	def_vxres = def_vxres ? : fbdev->panel->x_res;
-	def_vyres = def_vyres ? : fbdev->panel->y_res;
+	def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res;
+	def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res;
 
 	init_state++;
 
-- 
1.6.3.2


  reply	other threads:[~2009-06-24 11:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 11:33 [PATCH 00/20] omapfb: Add support for new LCDs / misc fixes Imre Deak
2009-06-24 11:33 ` [PATCH 01/20] omapfb: Add support for the Apollon LCD Imre Deak
2009-06-24 11:33   ` [PATCH 02/20] omapfb: Add support for MIPI-DCS compatible LCDs Imre Deak
2009-06-24 11:33     ` [PATCH 03/20] omapfb: Add support for the Amstrad Delta LCD Imre Deak
2009-06-24 11:33       ` [PATCH 04/20] omapfb: Add support for the 2430SDP LCD Imre Deak
2009-06-24 11:33         ` [PATCH 05/20] omapfb: Add support for the OMAP2EVM LCD Imre Deak
2009-06-24 11:33           ` [PATCH 06/20] omapfb: Add support for the 3430SDP LCD Imre Deak
2009-06-24 11:33             ` [PATCH 07/20] omapfb: Add support for the OMAP3 EVM LCD Imre Deak
2009-06-24 11:33               ` [PATCH 08/20] omapfb: Add support for the OMAP3 Beagle DVI output Imre Deak
2009-06-24 11:33                 ` [PATCH 09/20] omapfb: Add support for the Gumstix Overo LCD Imre Deak
2009-06-24 11:33                   ` [PATCH 10/20] omapfb: Add support for the ZOOM MDK LCD Imre Deak
2009-06-24 11:33                     ` [PATCH 11/20] omapfb: Add support for rotation on the Blizzard LCD ctrl Imre Deak
2009-06-24 11:33                       ` [PATCH 12/20] N770: Enable LCD MIPI-DCS in Kconfig Imre Deak
2009-06-24 11:33                         ` [PATCH 13/20] omapfb: dispc: Various typo fixes Imre Deak
2009-06-24 11:33                           ` [PATCH 14/20] omapfb: dispc: Disable iface clocks along with func clocks Imre Deak
2009-06-24 11:33                             ` [PATCH 15/20] omapfb: dispc: Enable wake up capability Imre Deak
2009-06-24 11:33                               ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Imre Deak
2009-06-24 11:33                                 ` [PATCH 17/20] omapfb: suspend/resume only if FB device is already initialized Imre Deak
2009-06-24 11:33                                   ` Imre Deak [this message]
2009-06-24 11:33                                     ` [PATCH 19/20] omapfb: Add FB manual update option to Kconfig Imre Deak
2009-06-24 11:33                                       ` [PATCH 20/20] omapfb: HWA742: fix pointer to be const Imre Deak
2009-06-24 12:16                                 ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Felipe Balbi
2009-06-24 13:35                                   ` Imre Deak
  -- strict thread matches above, loose matches on Subject: below --
2009-06-04 17:52 [PATCH 00/20] omapfb: Add support for new LCDs / misc fixes Imre Deak
2009-06-04 17:52 ` [PATCH 01/20] omapfb: Add support for the Apollon LCD Imre Deak
2009-06-04 17:52   ` [PATCH 02/20] omapfb: Add support for MIPI-DCS compatible LCDs Imre Deak
2009-06-04 17:52     ` [PATCH 03/20] N770: Enable LCD MIPI-DCS in Kconfig Imre Deak
2009-06-04 17:52       ` [PATCH 04/20] omapfb: Add support for the Amstrad Delta LCD Imre Deak
2009-06-04 17:52         ` [PATCH 05/20] omapfb: Add support for the 2430SDP LCD Imre Deak
2009-06-04 17:52           ` [PATCH 06/20] omapfb: Add support for the OMAP2EVM LCD Imre Deak
2009-06-04 17:52             ` [PATCH 07/20] omapfb: Add support for the 3430SDP LCD Imre Deak
2009-06-04 17:52               ` [PATCH 08/20] omapfb: Add support for the OMAP3 EVM LCD Imre Deak
2009-06-04 17:52                 ` [PATCH 09/20] omapfb: Add support for the OMAP3 Beagle DVI output Imre Deak
2009-06-04 17:52                   ` [PATCH 10/20] omapfb: Add support for the Gumstix Overo LCD Imre Deak
2009-06-04 17:52                     ` [PATCH 11/20] omapfb: Add support for the ZOOM MDK LCD Imre Deak
2009-06-04 17:52                       ` [PATCH 12/20] omapfb: Add support for rotation on the Blizzard LCD ctrl Imre Deak
2009-06-04 17:52                         ` [PATCH 13/20] omapfb: dispc: Various typo fixes Imre Deak
2009-06-04 17:52                           ` [PATCH 14/20] omapfb: dispc: Disable iface clocks along with func clocks Imre Deak
2009-06-04 17:52                             ` [PATCH 15/20] omapfb: dispc: Enable wake up capability Imre Deak
2009-06-04 17:52                               ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Imre Deak
2009-06-04 17:52                                 ` [PATCH 17/20] omapfb: suspend/resume only if FB device is already initialized Imre Deak
2009-06-04 17:52                                   ` [PATCH 18/20] omapfb: Fix coding style / remove dead line Imre Deak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d724e13a36e386e87474ecc9f20fc8d07f22512d.1245842329.git.imre.deak@nokia.com \
    --to=imre.deak@nokia.com \
    --cc=Tomi.Valkeinen@nokia.com \
    --cc=adaplas@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=krzysztof.h1@poczta.fm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.