]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/i2c/i2c-core-base.c
i2c/of: Add OF_RECONFIG notifier handler
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>
Tue, 28 Oct 2014 20:36:03 +0000 (22:36 +0200)
committerGrant Likely <grant.likely@linaro.org>
Tue, 25 Nov 2014 15:35:35 +0000 (15:35 +0000)
commitea7513bbc04170f1cbf42953187a4d8b731c71c4
treeeae2d5fe9a96b50e45c447249b82f55983df8094
parenta430a3455f2c48995e06b359a82a1109a419e9ef
i2c/of: Add OF_RECONFIG notifier handler

CONFIG_OF_DYNAMIC enables runtime changes to the device tree which in
turn may trigger addition or removal of devices from Linux. Add an
OF_RECONFIG notifier handler to receive tree change events and to
creating or destroy i2c devices as required.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[grant.likely: clean up #ifdefs and drop unneeded error handling]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-i2c@vger.kernel.org
drivers/i2c/i2c-core.c