hwmon: Don't access struct mc13783 directly from mc13783-adc
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 2 Aug 2010 09:14:18 +0000 (11:14 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:03 +0000 (11:28 +0200)
commiteaf06ee22594ac90cdd0279483b06c1db1667e01
tree12946774afdbfec2e208bc65532fd663aa648f2d
parent3b16bb539c558cd523ea380653d4bf24a8c9e833
hwmon: Don't access struct mc13783 directly from mc13783-adc

There is a shiny new mc13783 API function that can be used instead.

While at it refactor the code a bit to reduce code duplication a bit.

This removes the last user of <linux/mfd/mc13783-private.h> and so this
include file can go away.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/hwmon/mc13783-adc.c