]> git.baikalelectronics.ru Git - kernel.git/commit
clk: define and export clk_debugs_add_file
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 26 Jun 2014 15:00:53 +0000 (18:00 +0300)
committerMike Turquette <mturquette@linaro.org>
Wed, 2 Jul 2014 23:15:55 +0000 (16:15 -0700)
commit7452d65e0c7dbe77ea47344d0952391b224db026
tree26e0c80d9502c0ae0a473c0e24832b9d218d1467
parente65f04bccd7c6b08b89ee8efeac8c0aa3a7d2c2a
clk: define and export clk_debugs_add_file

Define and export a new function clk_debugs_add_file which adds a file
to a existing clock's debugfs directory. This can be used by clock
providers to add debugfs entries which are not related to a specific clock
type. Examples include the ability to measure the rate of a clock. It can
also be used by modules to create new debugfs entries. This is useful if you
want to expose features for testing which can potentially cause system
instability such as allowing to change a clock's rate from userspace.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h