mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'linus' into sched/core, to resolve conflict
Conflicts: arch/sparc/include/asm/topology_64.h Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
commit
f407a82586
409 changed files with 3728 additions and 1984 deletions
|
|
@ -439,6 +439,7 @@ nct6683_create_attr_group(struct device *dev, struct sensor_template_group *tg,
|
|||
(*t)->dev_attr.attr.name, tg->base + i);
|
||||
if ((*t)->s2) {
|
||||
a2 = &su->u.a2;
|
||||
sysfs_attr_init(&a2->dev_attr.attr);
|
||||
a2->dev_attr.attr.name = su->name;
|
||||
a2->nr = (*t)->u.s.nr + i;
|
||||
a2->index = (*t)->u.s.index;
|
||||
|
|
@ -449,6 +450,7 @@ nct6683_create_attr_group(struct device *dev, struct sensor_template_group *tg,
|
|||
*attrs = &a2->dev_attr.attr;
|
||||
} else {
|
||||
a = &su->u.a1;
|
||||
sysfs_attr_init(&a->dev_attr.attr);
|
||||
a->dev_attr.attr.name = su->name;
|
||||
a->index = (*t)->u.index + i;
|
||||
a->dev_attr.attr.mode =
|
||||
|
|
|
|||
|
|
@ -995,6 +995,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
|
|||
(*t)->dev_attr.attr.name, tg->base + i);
|
||||
if ((*t)->s2) {
|
||||
a2 = &su->u.a2;
|
||||
sysfs_attr_init(&a2->dev_attr.attr);
|
||||
a2->dev_attr.attr.name = su->name;
|
||||
a2->nr = (*t)->u.s.nr + i;
|
||||
a2->index = (*t)->u.s.index;
|
||||
|
|
@ -1005,6 +1006,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
|
|||
*attrs = &a2->dev_attr.attr;
|
||||
} else {
|
||||
a = &su->u.a1;
|
||||
sysfs_attr_init(&a->dev_attr.attr);
|
||||
a->dev_attr.attr.name = su->name;
|
||||
a->index = (*t)->u.index + i;
|
||||
a->dev_attr.attr.mode =
|
||||
|
|
|
|||
|
|
@ -239,8 +239,10 @@ static struct ntc_thermistor_platform_data *
|
|||
ntc_thermistor_parse_dt(struct platform_device *pdev)
|
||||
{
|
||||
struct iio_channel *chan;
|
||||
enum iio_chan_type type;
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct ntc_thermistor_platform_data *pdata;
|
||||
int ret;
|
||||
|
||||
if (!np)
|
||||
return NULL;
|
||||
|
|
@ -253,6 +255,13 @@ ntc_thermistor_parse_dt(struct platform_device *pdev)
|
|||
if (IS_ERR(chan))
|
||||
return ERR_CAST(chan);
|
||||
|
||||
ret = iio_get_channel_type(chan, &type);
|
||||
if (ret < 0)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
if (type != IIO_VOLTAGE)
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
||||
if (of_property_read_u32(np, "pullup-uv", &pdata->pullup_uv))
|
||||
return ERR_PTR(-ENODEV);
|
||||
if (of_property_read_u32(np, "pullup-ohm", &pdata->pullup_ohm))
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
#include <linux/sysfs.h>
|
||||
|
||||
/* Addresses to scan */
|
||||
static const unsigned short normal_i2c[] = { 0x37, 0x48, 0x49, 0x4a, 0x4c, 0x4d,
|
||||
static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4c, 0x4d,
|
||||
0x4e, 0x4f, I2C_CLIENT_END };
|
||||
|
||||
enum chips { tmp401, tmp411, tmp431, tmp432, tmp435 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue