Viresh Kumar b201c111c8 dmaengine/amba-pl08x: pass (*ptr) to sizeof() instead of (struct xyz)
As mentioned in Documentation/CodingStyle,

The preferred form for passing a size of a struct is the following:
   p = kmalloc(sizeof(*p), ...);

The alternative form where struct name is spelled out hurts readability and
introduces an opportunity for a bug when the pointer variable type is changed
but the corresponding sizeof that is passed to a memory allocator is not.

This patch replaces (struct xyz) with *ptr at several occurrences in driver.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2011-08-25 19:33:37 +05:30
..
2011-08-03 22:25:06 -07:00
2011-04-06 11:51:12 +05:30
2011-03-11 17:52:36 -08:00
2011-07-07 09:55:50 +02:00
2011-03-31 11:26:23 -03:00
2011-06-08 15:10:44 -06:00
2011-06-08 15:10:44 -06:00
2011-03-31 11:26:23 -03:00
2011-07-14 03:32:31 +05:30
2009-09-08 17:53:03 -07:00
2011-06-21 17:56:01 +09:00
2011-01-30 22:27:21 -08:00