[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <877gpn6xxw.fsf@dell.be.48ers.dk>
Date: Thu, 15 Nov 2012 10:02:35 +0100
From: Peter Korsgaard <jacmet@...site.dk>
To: Andreas Larsson <andreas@...sler.com>
Cc: Wolfram Sang <w.sang@...gutronix.de>,
Ben Dooks <ben-linux@...ff.org>, linux-i2c@...r.kernel.org,
Grant Likely <grant.likely@...retlab.ca>,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
software@...sler.com
Subject: Re: [PATCH v3 2/2] i2c: i2c-ocores: Add support for the GRLIB port of the controller and custom getreg and setreg functions
>>>>> "Andreas" == Andreas Larsson <andreas@...sler.com> writes:
Hi,
>> Adding a type define (TYPE_OCORES / TYPE_GRLIB) and a 2nd
>> of_device_id entry with .data = TYPE_GRLIB, and then using that in
>> the probe routine would be nicer. Have a look at i2c-at91.c for an
>> example of a driver doing something like that.
Andreas> Yes, that is a good idea. Do you think casting to and from
Andreas> void * in the following solution is too ugly and rather have a
Andreas> struct pointed to, or do you think that would be unnecessary?
I find the casting OK.
Thanks.
--
Bye, Peter Korsgaard
--
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