Thread (15 messages) 15 messages, 5 authors, 2011-02-10

Re: [PATCH 1/2] video: Add i.MX23/28 framebuffer driver

flat view
STALE5731d

From: Sascha Hauer <s.hauer@pengutronix.de>
Date: 2011-02-10 11:51:09
Also in: linux-arm-kernel

Possibly related (same subject, not in this thread)

On Thu, Feb 10, 2011 at 11:47:25AM +0100, Wolfram Sang wrote:
quoted
But I would prefer:
#define SET 4
#define CLEAR 8
[...]
writel(CTRL_DOTCLK_MODE, host->base + CTRL + SET)
For this we already have __mxs_setl.
NACK.

This will indeed not be caught by the compiler.

And while I like the shorter macros better as well, an MXSFB_ prefix
should be added IMO. Macros like CTRL and TIMING are not too well
protected.
+1 for a prefix, be it MXSFB_ or LCDIF_, will change this.

Otherwise can we please stop about arguing about register defines? It's
too much a matter of taste and there is no perfect way to solve this.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help