summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-target.c
diff options
context:
space:
mode:
authorSilvan Wicki <linux_wi@tinag.ch>2015-06-18 11:10:11 +0200
committerWolfram Sang <wsa@the-dreams.de>2015-06-23 19:55:19 +0200
commita294aba164389a3d2c40dfcf5f3989a3bbfe38a2 (patch)
tree079f75628fa91e1e19807aece7509912cb512b14 /drivers/md/dm-target.c
parent365322fb32e82b20758e8a18e3aa94692ce2a3d1 (diff)
downloadlinux-a294aba164389a3d2c40dfcf5f3989a3bbfe38a2.tar.gz
linux-a294aba164389a3d2c40dfcf5f3989a3bbfe38a2.tar.bz2
linux-a294aba164389a3d2c40dfcf5f3989a3bbfe38a2.zip
i2c: busses: i2c-bcm2835: limits cdiv to allowed values
Checks if the cdiv value is in between min (0x2) and max (0xFFFE) supported values by the bcm2835. If not, it returns -ENODEV. See page 33/34 of BCM2835-ARM-Peripherals.pdf for the DIV register. https://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf Signed-off-by: Silvan Wicki <linux_wi@tinag.ch> [wsa: resolved a merge conflict] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/md/dm-target.c')
0 files changed, 0 insertions, 0 deletions