Thread (18 messages) 18 messages, 5 authors, 2012-01-23
STALE5361d

[PATCH v4 2/4] ARM: pxa168: Add SDHCI support

From: haojian.zhuang@gmail.com (Haojian Zhuang)
Date: 2011-12-21 01:48:24
Also in: linux-mmc

On Wed, Dec 21, 2011 at 5:03 AM, Russell King - ARM Linux
[off-list ref] wrote:
Just two minor style issues in this patch.

On Tue, Dec 20, 2011 at 06:43:01PM +0530, Tanmay Upadhyay wrote:
quoted
+static inline int pxa168_add_sdh(int id, struct sdhci_pxa_platdata *data)
+{
+ ? ? struct pxa_device_desc *d = NULL;
+
+ ? ? switch (id) {
+ ? ? case 1: d = &pxa168_device_sdh1; break;
+ ? ? case 2: d = &pxa168_device_sdh2; break;
+ ? ? case 3: d = &pxa168_device_sdh3; break;
+ ? ? case 4: d = &pxa168_device_sdh4; break;
Style.
? ? ? ?case X:
? ? ? ? ? ? ? ?d = &y;
? ? ? ? ? ? ? ?break;
quoted
+static void sdh_clk_disable(struct clk *clk)
+{
+ ? ? __raw_writel(__raw_readl(clk->clk_rst) & ~(clk->enable_val),
Parens around clk->enable_val not required.
quoted
+ ? ? INIT_CLKREG(&clk_sdh1, NULL, "PXA-SDHCLK"),
+ ? ? INIT_CLKREG(&clk_sdh2, NULL, "PXA-SDHCLK"),
+ ? ? INIT_CLKREG(&clk_sdh3, NULL, "PXA-SDHCLK"),
+ ? ? INIT_CLKREG(&clk_sdh4, NULL, "PXA-SDHCLK"),
So these clocks are registered with the same name? ?How are they
distinguished by clk_get()?
Yes, it's better to use devname.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help