From mboxrd@z Thu Jan 1 00:00:00 1970 From: alfred steele Subject: Re: [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Date: Wed, 15 Jul 2009 10:46:27 -0500 Message-ID: <528f13590907150846o7f4e41daw4cd6e37ff3afef70@mail.gmail.com> References: <528f13590907140925h7aa36452o60da32d3bf941241@mail.gmail.com> <4A5CB908.4060404@cam.ac.uk> <528f13590907141358w17869b6fq450bf223e4f54687@mail.gmail.com> <4A5D6C0A.7030903@gmx.de> <528f13590907150722q2a91139bve72d65cbd555b8e9@mail.gmail.com> <4A5DEB12.3020602@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <4A5DEB12.3020602-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jonathan Cameron Cc: Michael Lawnick , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, LM Sensors List-Id: linux-i2c@vger.kernel.org Thanks Jonathan! > On an embedded board this would typically be in the board config > file. =A0For example, see arch/arm/mach-pxa/imote2.c which has an sht= 15 > attached. =A0The exact method of registration may be a bit architectu= re > specific but will look something like the relevant parts of that file= =2E Yep, for e.g we have wrappers for api's like gpio_request etc. The real problem, however, seems to be that we have been using a distro which uses kernel 2.6.24. It does not have the "" and the " which export regulator_register_notifier()/regulator_unregister_notifier() functions= =2E So, i will have to look into how to backport this. THe gpio lib thing may be straightforward but i am way ignorant on the regulator/pmic infrastructure. It would greatly help you can shed some light on the regulator part and if there is any quick way to get around to backport the regulator specific functions. Thanks in advance for your help! -Alfred.