linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I2C device board info
@ 2009-07-18 10:56 Russell King - ARM Linux
       [not found] ` <20090718105600.GA29887-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Russell King - ARM Linux @ 2009-07-18 10:56 UTC (permalink / raw)
  To: Sascha Hauer, Ben Dooks; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Sascha,

I've noticed the following in i2c_board_info initializers:

arch/arm/mach-mx2/pcm038.c:             I2C_BOARD_INFO("rtc-pcf8563", 0x51),
arch/arm/mach-mx2/pcm038.c-             .type = "pcf8563"

However, I2C_BOARD_INFO is defined as:

#define I2C_BOARD_INFO(dev_type, dev_addr) \
        .type = dev_type, .addr = (dev_addr)

so you're initializing .type twice.  Only one of these will be used,
so you may want to correct these entries.  (Looking at Realview, the
one which is used is the second - so in the above case, .type will
be initialized with current gcc to "pcf8563" not "rtc-pcf8563".)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-20  7:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18 10:56 I2C device board info Russell King - ARM Linux
     [not found] ` <20090718105600.GA29887-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2009-07-18 13:08   ` Jean Delvare
     [not found]     ` <20090718150803.68fea223-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-07-18 13:12       ` Russell King - ARM Linux
     [not found]         ` <20090718131237.GB4120-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2009-07-18 13:29           ` Jean Delvare
     [not found]             ` <20090718152918.09912dea-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-07-18 13:57               ` Russell King - ARM Linux
     [not found]                 ` <20090718135713.GC4120-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2009-07-18 14:39                   ` Jean Delvare
2009-07-18 15:45                   ` Ben Dooks
2009-07-20  6:20   ` Sascha Hauer
     [not found]     ` <20090720062034.GV2714-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-07-20  7:34       ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).