“bbdc2821db041fb07ffa52e4a0e1ebb5410790e9”上不存在“drivers/net/ethernet/mellanox/mlx4/mr.c”
提交 4050f493 编写于 作者: J Jonathan Cameron 提交者: Greg Kroah-Hartman

staging:iio:adc:ad7152 set correct number of channels for ad7153.

Has been broken for some time.
Signed-off-by: NJonathan Cameron <jic23@cam.ac.uk>
Acked-by: NMichael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3995f917
...@@ -402,6 +402,10 @@ static int __devinit ad7152_probe(struct i2c_client *client, ...@@ -402,6 +402,10 @@ static int __devinit ad7152_probe(struct i2c_client *client,
indio_dev->dev.parent = &client->dev; indio_dev->dev.parent = &client->dev;
indio_dev->info = &ad7152_info; indio_dev->info = &ad7152_info;
indio_dev->channels = ad7152_channels; indio_dev->channels = ad7152_channels;
if (id->driver_data == 0)
indio_dev->num_channels = ARRAY_SIZE(ad7152_channels);
else
indio_dev->num_channels = 1;
indio_dev->num_channels = ARRAY_SIZE(ad7152_channels); indio_dev->num_channels = ARRAY_SIZE(ad7152_channels);
indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->modes = INDIO_DIRECT_MODE;
...@@ -430,7 +434,7 @@ static int __devexit ad7152_remove(struct i2c_client *client) ...@@ -430,7 +434,7 @@ static int __devexit ad7152_remove(struct i2c_client *client)
static const struct i2c_device_id ad7152_id[] = { static const struct i2c_device_id ad7152_id[] = {
{ "ad7152", 0 }, { "ad7152", 0 },
{ "ad7153", 0 }, { "ad7153", 1 },
{} {}
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册