debugfs: Pass bool pointer to debugfs_create_bool()
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 26 Sep 2015 22:04:07 +0000 (15:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 10:36:07 +0000 (11:36 +0100)
commit621a5f7ad9cd1ce7933f1d302067cbd58354173c
treea9cd51d4b4e70286a339ffc463618d0f33279c67
parent6e58f752a6502b43e039fd7df2c7c5cde8dde437
debugfs: Pass bool pointer to debugfs_create_bool()

Its a bit odd that debugfs_create_bool() takes 'u32 *' as an argument,
when all it needs is a boolean pointer.

It would be better to update this API to make it accept 'bool *'
instead, as that will make it more consistent and often more convenient.
Over that bool takes just a byte.

That required updates to all user sites as well, in the same commit
updating the API. regmap core was also using
debugfs_{read|write}_file_bool(), directly and variable types were
updated for that to be bool as well.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 files changed:
Documentation/filesystems/debugfs.txt
arch/arm64/kernel/debug-monitors.c
drivers/acpi/internal.h
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache.c
drivers/bluetooth/hci_qca.c
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h
drivers/misc/mei/mei_dev.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/b43/debugfs.c
drivers/net/wireless/b43/debugfs.h
drivers/net/wireless/b43legacy/debugfs.c
drivers/net/wireless/b43legacy/debugfs.h
drivers/net/wireless/iwlegacy/common.h
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/scsi/snic/snic_trc.c
drivers/scsi/snic/snic_trc.h
drivers/uwb/uwb-debug.c
fs/debugfs/file.c
include/linux/debugfs.h
include/linux/edac.h
include/linux/fault-inject.h
kernel/futex.c
lib/dma-debug.c
mm/failslab.c
mm/page_alloc.c
sound/soc/codecs/wm_adsp.h