Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273391
b: refs/heads/master
c: 613c27a
h: refs/heads/master
i:
  273389: aa96f10
  273387: f7caf28
  273383: 98a8d27
  273375: 3f12b1e
v: v3
  • Loading branch information
Uwe Kleine-König authored and Samuel Ortiz committed Oct 24, 2011
1 parent a48e9ad commit eb0cea7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aece6ab49dbc5646d6339eee424d1f944f54519
refs/heads/master: 613c27ab98dd2242bd9d62b0ab00b440bdf3259f
12 changes: 6 additions & 6 deletions trunk/drivers/hwmon/mc13783-adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define MC13783_ADC_NAME "mc13783-adc"

struct mc13783_adc_priv {
struct mc13783 *mc13783;
struct mc13xxx *mc13xxx;
struct device *hwmon_dev;
};

Expand All @@ -51,8 +51,8 @@ static int mc13783_adc_read(struct device *dev,
unsigned int sample[4];
int ret;

ret = mc13783_adc_do_conversion(priv->mc13783,
MC13783_ADC_MODE_MULT_CHAN,
ret = mc13xxx_adc_do_conversion(priv->mc13xxx,
MC13XXX_ADC_MODE_MULT_CHAN,
channel, sample);
if (ret)
return ret;
Expand Down Expand Up @@ -147,9 +147,9 @@ static const struct attribute_group mc13783_group_ts = {
static int mc13783_adc_use_touchscreen(struct platform_device *pdev)
{
struct mc13783_adc_priv *priv = platform_get_drvdata(pdev);
unsigned flags = mc13783_get_flags(priv->mc13783);
unsigned flags = mc13xxx_get_flags(priv->mc13xxx);

return flags & MC13783_USE_TOUCHSCREEN;
return flags & MC13XXX_USE_TOUCHSCREEN;
}

static int __init mc13783_adc_probe(struct platform_device *pdev)
Expand All @@ -161,7 +161,7 @@ static int __init mc13783_adc_probe(struct platform_device *pdev)
if (!priv)
return -ENOMEM;

priv->mc13783 = dev_get_drvdata(pdev->dev.parent);
priv->mc13xxx = dev_get_drvdata(pdev->dev.parent);

platform_set_drvdata(pdev, priv);

Expand Down

0 comments on commit eb0cea7

Please sign in to comment.