[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZhxAxOMCwvMz2BWqND053kZ0taVstQn8n2emN=wktF-Q@mail.gmail.com>
Date: Tue, 19 May 2015 10:49:19 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Hongzhou Yang <hongzhou.yang@...iatek.com>
Cc: Rob Herring <robh+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Russell King <linux@....linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Samuel Ortiz <sameo@...ux.intel.com>,
Lee Jones <lee.jones@...aro.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Eddie Huang <eddie.huang@...iatek.com>,
Howard Chen <ibanezchen@...il.com>,
Ashwin Chaugule <ashwin.chaugule@...aro.org>,
"Joe.C" <yingjoe.chen@...iatek.com>,
Chaotian Jing <chaotian.jing@...iatek.com>,
Fabian Frederick <fabf@...net.be>,
Maoguang Meng <maoguang.meng@...iatek.com>,
Axel Lin <axel.lin@...ics.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
linux-mediatek@...ts.infradead.org,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
srv_heupstream@...iatek.com, Sascha Hauer <kernel@...gutronix.de>,
dandan.he@...iatek.com
Subject: Re: [PATCH 01/10] pinctrl: mediatek: data struct optimize and remove
unused member
On Thu, May 14, 2015 at 3:35 AM, Hongzhou Yang
<hongzhou.yang@...iatek.com> wrote:
> From: Yingjoe Chen <yingjoe.chen@...iatek.com>
>
> struct mtk_desc_pin.chip, mtk_pinctrl_devdata.invser_offset
> and mtk_pinctrl_devdata.chip_type are never used in code.
> Remove them.
>
> Some per-pin data are using int for pin number and offsets.
> Change to short and rearrange to reduce const data size.
>
> Signed-off-by: Yingjoe Chen <yingjoe.chen@...iatek.com>
> Signed-off-by: Hongzhou Yang <hongzhou.yang@...iatek.com>
Patch applied.
However I suggest you use:
unsigned int => u32
unsigned short => u16
unsigned char => u8
These kernel-specific types are more to the point,
you immediately see how many bits they use, so a
patch chaning all of the types to u32/u16/u8 would
be welcome.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists