lkml.org 
[lkml]   [2003]   [Apr]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 3 Apr 2003 10:57:57 +0200
FromGerd Knorr <>
SubjectRe: [patch] add i2c_clientname()
> > This patch just adds a #define and a inline function to hide the
> > "i2c_client->name" => "i2c_client->dev.name" move introduced by
> > the recent i2c updates.  That makes it easier to build i2c drivers
> > on both 2.4 and 2.5 kernels.
> 
> This is going to be a harder and harder problem as time goes on, and as
> the i2c core changes over time.  I would just give up now :)

I don't, interfacing with the i2c core is not that much code in most
drivers.

> > +#define I2C_DEVNAME(str)   .dev = { .name = str }
> 
> Why this macro?  You don't use it in your driver, right?

I use it in my current driver code (patches are at
http://bytesex.org/patches/wip/).  Submitting those patches doesn't
make sense before that patch is in because I would get flooded with
"bttv doesn't compile any more" style mails ...

  Gerd

-- 
Michael Moore for president!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [from the cache]
©2003-2008