forked from luck/tmp_suning_uos_patched
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap: Specify a module license regmap: Fix bulk reads
This commit is contained in:
commit
259a53407d
@ -113,3 +113,4 @@ struct regmap *regmap_init_i2c(struct i2c_client *i2c,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(regmap_init_i2c);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -70,3 +70,5 @@ struct regmap *regmap_init_spi(struct spi_device *spi,
|
||||
return regmap_init(&spi->dev, ®map_spi, config);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(regmap_init_spi);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -317,7 +317,7 @@ static int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
|
||||
u8[0] |= map->bus->read_flag_mask;
|
||||
|
||||
ret = map->bus->read(map->dev, map->work_buf, map->format.reg_bytes,
|
||||
val, map->format.val_bytes);
|
||||
val, val_len);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user