]> Pileus Git - ~andy/linux/commit
i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 21 Jun 2013 13:32:06 +0000 (15:32 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 25 Jun 2013 21:43:37 +0000 (23:43 +0200)
commit4c730a06c19bb83d2fa4308ee4cbb23abc84c9ca
tree756a378f3e7ec8fae98aed6ab79631bb5bd914a9
parent2f641a8bdb1b808b9bf1d0ca7d169d199aaf6ff4
i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided

This commit adds checking whether clock-frequency property acquisition
has succeeded. If not, the frequency is set to 100kHz by default.

The Device Tree binding documentation is updated accordingly.

Based on the intials patches from Zbigniew Bodek

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Zbigniew Bodek <zbb@semihalf.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt
drivers/i2c/busses/i2c-mv64xxx.c