[PATCH] thermal: tegra: soctherm: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-23 Thread Yangtao Li
Use macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/thermal/tegra/soctherm.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index ed28110a3535..45b41b885f49 100644 --- a

[PATCH] thermal/intel_powerclamp: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-23 Thread Yangtao Li
Use macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/thermal/intel_powerclamp.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c index cde891c54cde..7571f7c2e7c9 100644

[PATCH] clk: tegra: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-23 Thread Yangtao Li
Use macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/clk/tegra/clk-dfll.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index ebb0e1b6bf01..609e363dabf8 100644 --- a/drivers/clk/tegra

[PATCH] clk: nomadik: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-23 Thread Yangtao Li
Use macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/clk/clk-nomadik.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/clk/clk-nomadik.c b/drivers/clk/clk-nomadik.c index 84a24875c629..e331634d34df 100644 --- a/drivers/clk/clk

[PATCH] irqchhip: Convert to using %pOFn instead of device_node.name

2018-11-23 Thread Yangtao Li
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Signed-off-by: Yangtao Li --- drivers/irqchip/irq-mscc-ocelot.c | 6 +++--- drivers/irqchip/irq-stm32-exti.c | 6 +++--- drivers/irqchip/irq-tango.c | 10

[PATCH] memory: tegra: Convert to using %pOFn instead of device_node.name

2018-11-24 Thread Yangtao Li
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Signed-off-by: Yangtao Li --- drivers/memory/tegra/mc.c | 6 +++--- drivers/memory/tegra/tegra124-emc.c | 12 ++-- 2 files changed, 9 insertions

[PATCH] devres: no print device_node.name in devres_log()

2018-11-24 Thread Yangtao Li
In preparation to remove the node name pointer from struct device_node, avoid to printf node name. Signed-off-by: Yangtao Li --- drivers/base/devres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/devres.c b/drivers/base/devres.c index 4aaf00d2098b

[PATCH] power/reset: axxia: Convert to using %pOFn instead of device_node.name

2018-11-24 Thread Yangtao Li
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Signed-off-by: Yangtao Li --- drivers/power/reset/axxia-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/axxia-reset.c

[PATCH v2] soc: bcm: brcmstb: Don't leak device tree node reference

2018-11-24 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. soc_is_brcmstb() doesn't do that, so fix it. [treding: slightly rewrite to avoid inline comparison] Signed-off-by: Yangtao Li --- Changes in v2: -update chan

[PATCH v2] clocksource/drivers/integrator-ap: add missing of_node_put()

2018-11-24 Thread Yangtao Li
count after getting the node from path as it is not used aspointer. In addition, a single variable is needed, so fix it. Signed-off-by: Yangtao Li --- Changes in v2: -update changeelog -simplify fix -change two variable to one --- drivers/clocksource/timer-integrator-ap.c | 22 +---

[PATCH] OPP: remove some duplicated includes

2018-11-26 Thread Yangtao Li
Some header files are included twice.It's unnecessary, so just remove them. Signed-off-by: Yangtao Li --- drivers/opp/core.c | 2 -- drivers/opp/cpu.c | 1 - drivers/opp/debugfs.c | 2 -- drivers/opp/of.c| 1 - drivers/opp/opp.h | 1 - driver

[PATCH] module: remove some duplicated includes

2018-11-26 Thread Yangtao Li
We include elf.h twice in module.c. It's unnecessary. hence just remove them. Signed-off-by: Yangtao Li --- kernel/module.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 49a405891587..438641fc4096 100644 --- a/kernel/module.c +++ b/kernel/mod

[PATCH] workqueue: remove some duplicated includes

2018-11-26 Thread Yangtao Li
workqueue.h and kthread.h are included twice.It's unnecessary. hence just remove them. Signed-off-by: Yangtao Li --- kernel/workqueue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 0280deac392e..7c62391ed5e5 100644 --- a/kernel/workqu

[PATCH] async: remove some duplicated includes

2018-11-26 Thread Yangtao Li
we include workqueue.h twice.It's unnecessary,so just remove them. Signed-off-by: Yangtao Li --- kernel/async.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/async.c b/kernel/async.c index a893d6170944..4932e9193fa3 100644 --- a/kernel/async.c +++ b/kernel/async.c @@ -55,7

[PATCH] signal: remove some duplicated includes

2018-11-26 Thread Yangtao Li
tty.h and fs.h are included twice.It's unnecessary. hence just remove them. Signed-off-by: Yangtao Li --- kernel/signal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index 9a32bc2088c9..b319f06e23f7 100644 --- a/kernel/signal.c +++ b/kernel/sig

[PATCH] cpuidle: big.LITTLE: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/cpuidle/cpuidle-big_little.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/cpuidle/cpuidle-big_little.c b/drivers/cpuidle/cpuidle-big_little.c index db2ede565f1a..a3b8bc09bac8

[PATCH] clocksource/drivers/integrator-ap: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clocksource/timer-integrator-ap.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/timer-integrator-ap.c b/drivers/clocksource/timer-integrator-ap.c index

[PATCH] watchdog: cpwd: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/watchdog/cpwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index aee0b25cf10d..d3a81642ada5 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog

[PATCH] sbus: char: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/sbus/char/display7seg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index 5c8ed7350a04..a36e4cf1841d 100644 --- a/drivers/sbus/char

[PATCH] drivers/sbus/char: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/sbus/char/envctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index 56e962a01493..b8481927bfe4 100644 --- a/drivers/sbus/char/envctrl.c +++ b

[PATCH] arm: add missing of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/arm/kernel/devtree.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index e3057c1b55b9..9576adf0d15b 100644 --- a/arch/arm/kernel

[PATCH] arm: add missing of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/arm/kernel/devtree.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index e3057c1b55b9..9576adf0d15b 100644 --- a/arch/arm/kernel

[PATCH] ARM: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/arm/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 375b13f7e780..c20421f0078e 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel

[PATCH] RISC-V: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/riscv/kernel/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 1911c8f6b8a6..40470e669a35 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv

[PATCH v2] watchdog: cpwd: add of_node_put()

2018-11-20 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- Changes in v2: -do that right after its last use to also cover error handling. --- drivers/watchdog/cpwd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index

[PATCH v2] cpuidle: big.LITTLE: add of_node_put()

2018-11-20 Thread Yangtao Li
The of_node_put() is missing.So we call the of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- Changes in v2 -update changelog -do that right after its last use to also cover error handling. --- drivers/cpuidle/cpuidle-big_little.c | 6 +- 1 file changed, 5 insertions

[PATCH v3] cpuidle: big.LITTLE: add of_node_put()

2018-11-20 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- Changes in v3: -update changelog --- drivers/cpuidle/cpuidle-big_little.c | 6 +- 1

[PATCH] soc: bcm: brcmstb: add of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/soc/bcm/brcmstb/common.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH] soc/tegra: add of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/soc/tegra/common.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[PATCH] ata: pata_macio: add of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/ata/pata_macio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver

[PATCH] tty/sysrq: add of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/tty/sysrq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/sysr

[PATCH] Input: sparcspkr add of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/input/misc/sparcspkr.c | 9 ++--- 1 file changed, 6 insertions(+), 3 dele

[PATCH] soc/tegra: refactor soc_is_tegra()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller.soc_is_tegra() doesn't do that, so fix it.Call of_machine_is_compatible() to refactor soc_is_tegra() whcih automatically manages the reference count. Signed-off-by: Ya

[PATCH] Input: i8042 add of_node_put()

2018-11-21 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/input/serio/i8042-sparcio.h | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/input/serio/i8042-sparcio.h b/drivers/input/serio/i8042-sparcio.h index

[PATCH] drivers/tty: add missing of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. This place is not doing this, so fix it. Signed-off-by: Yangtao Li --- drivers/tty/serial/suncore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial

[PATCH] serial/sunsu: add missing of_node_put()

2018-11-21 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. This place is not doing this, so fix it. Signed-off-by: Yangtao Li --- drivers/tty/serial/sunsu.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions

[PATCH v2] ata: pata_macio: add of_node_put()

2018-11-22 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. This place doesn't do that, so fix it. Signed-off-by: Yangtao Li --- Changes in v2: -update changelog --- drivers/ata/pata_macio.c | 2 ++ 1 file changed, 2 inser

[PATCH] soc: ti: QMSS: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/soc/ti/knav_qmss_queue.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index 8b418379272d

[PATCH] soc: sunxi: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/soc/sunxi/sunxi_sram.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index b4b0f3480bd3..71e3ee4a3f19

[PATCH] soc: ti: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/soc/ti/knav_dma.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index e05ab16d9a9e..2a66f36b9fd6 100644 --- a

[PATCH] soc/tegra: pmc: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/soc/tegra/pmc.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 1fa840e3d930..d42a1f5ced82 100644 --- a/drivers

[PATCH] firmware: ti_sci: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/firmware/ti_sci.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 69ed1464175c..3fbbb61012c4 100644

[PATCH] power: supply: axp288_fuel_gauge: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-22 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/power/supply/axp288_fuel_gauge.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c

[PATCH] clocksource/drivers/integrator-ap: add missing of_node_put()

2018-11-22 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. integrator_ap_timer_init_of() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/clocksource/timer-integrator-ap.c | 20 ++-- 1

[PATCH] soc/tegra: optimize soc_is_tegra()

2018-11-22 Thread Yangtao Li
Use for() to rewrite the code.In addition,match->compatible[0] is equal to *match->compatible,change it. Signed-off-by: Yangtao Li --- drivers/soc/tegra/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c

[PATCH] cpufreq: ia64: Remove unused header files

2018-11-30 Thread Yangtao Li
seq_file.h does not need to be included,so remove it.Moreover deleted a line of meaningless return and move the module declaration to the end. In a function whose return type is void, returning on the last line is not required. Signed-off-by: Yangtao Li --- drivers/cpufreq/ia64-acpi-cpufreq.c

[PATCH] cpufreq: nforce2: Remove meaningless return

2018-11-30 Thread Yangtao Li
In a function whose return type is void, returning on the last line is not required.So remove it.Also move the module declaration to the end. Signed-off-by: Yangtao Li --- drivers/cpufreq/cpufreq-nforce2.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH] dmaengine: remove DBGFS_FUNC_DECL()

2018-11-30 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE,There is no need to define such a macro,so remove DBGFS_FUNC_DECL.Also use macro to simplify some code. Signed-off-by: Yangtao Li --- drivers/dma/amba-pl08x.c | 14 ++ drivers/dma/mic_x100_dma.c | 22 +++--- drivers/dma

[PATCH] dmaengine: ep93xx_dma: fix misspell

2018-11-19 Thread Yangtao Li
couln't -> couldn't Signed-off-by: Yangtao Li --- drivers/dma/ep93xx_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index f674eb5fbbef..594a88f4f99c 100644 --- a/drivers/dma/ep93xx_dma.c +++

[PATCH] x86/mm/dump_pagetables: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-19 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/x86/mm/debug_pagetables.c | 58 -- 1 file changed, 7 insertions(+), 51 deletions(-) diff --git a/arch/x86/mm/debug_pagetables.c b/arch/x86/mm/debug_pagetables.c index

[PATCH 2/2] platform/x86: intel_telemetry: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- .../platform/x86/intel_telemetry_debugfs.c| 42 +++ 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86

[PATCH 1/2] platform/x86: intel_pmc_core: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/platform/x86/intel_pmc_core.c | 49 +-- 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86

[PATCH v2] cpufreq: ia64: Remove unused header files

2018-12-05 Thread Yangtao Li
seq_file.h does not need to be included, so remove it. Moreover deleted a line of meaningless return and some useless blank lines. In a function whose return type is void, returning on the last line is not required. Signed-off-by: Yangtao Li Acked-by: Viresh Kumar --- changes in v2: -revert

[PATCH v2] cpufreq: nforce2: Remove meaningless return

2018-12-05 Thread Yangtao Li
Delete a line of meaningless return and some useless blank lines. In a function whose return type is void, returning on the last line is not required. Signed-off-by: Yangtao Li --- Changes in v2: -revert modify of MODULE_ -delete some blank lines --- drivers/cpufreq/cpufreq-nforce2.c | 3 --- 1

[PATCH 4/4] dmaengine: qcom_hidma: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li Acked-by: Sinan Kaya --- drivers/dma/qcom/hidma_dbg.c | 33 ++--- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/drivers/dma/qcom/hidma_dbg.c b/drivers/dma/qcom

[PATCH 3/4] dmaengine: pxa: remove DBGFS_FUNC_DECL()

2018-12-05 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE, There is no need to define such a macro, so remove DBGFS_FUNC_DECL. Signed-off-by: Yangtao Li Acked-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 36 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a

[PATCH 1/4] dmaengine: amba-pl08x: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/dma/amba-pl08x.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 97483df1f82e..fc8c2bab563c 100644 --- a

[PATCH 2/4] dmaengine: mic_x100_dma: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/dma/mic_x100_dma.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index adfd316db1a8..6a91e28d537d

[PATCH] usb: host: isp1362-hcd: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/usb/host/isp1362-hcd.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index b21c386e6a46

[PATCH v2] Input: i8042 fix refcount leak

2018-12-08 Thread Yangtao Li
use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/input/serio/i8042-sparcio.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/serio/i8042-sparcio.h b/drivers/input/serio/i8042-sparcio.h index 796289846204..cc6777b4c4ea

[PATCH v3] Input: i8042 add i8042_is_mr_coffee() helper to avoid refconut leak

2018-12-08 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. Add i8042_is_mr_coffee() helper to avoid refconut leak. Signed-off-by: Yangtao Li --- changes in v3: -add i8042_is_mr_coffee --- drivers/input/serio/i8042-sparcio.h | 20

[PATCH] staging: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-09 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/staging/fwserial/fwserial.c | 32 +++ drivers/staging/greybus/loopback.c| 16 ++ drivers/staging/rtlwifi/debug.c | 23

[PATCH] gpio: ks8695: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/gpio/gpio-ks8695.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-ks8695.c b/drivers/gpio/gpio-ks8695.c index 55d562e1278e..d6d6140ffc40 100644

[PATCH] pinctrl: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/pinctrl/pinconf.c | 29 - drivers/pinctrl/pinmux.c | 29 - 2 files changed, 8 insertions(+), 50 deletions(-) diff --git a/drivers/pinctrl

[PATCH] ACPI, APEI, EINJ: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/acpi/apei/einj.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c index b38737c83a24..fcccbfdbdd1a 100644 --- a/drivers

[PATCH] binder: remove BINDER_DEBUG_ENTRY()

2018-11-30 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define such a macro,so remove BINDER_DEBUG_ENTRY. Signed-off-by: Yangtao Li --- drivers/android/binder.c | 48 ++-- 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/drivers/android

[PATCH] driver core: remove define_genpd_open_function() and define_genpd_debugfs_fops()

2018-11-30 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE,There is no need to define such a macro,so remove define_genpd_open_function and define_genpd_debugfs_fops. Also use DEFINE_SHOW_ATTRIBUTE to simplify somecode. Signed-off-by: Yangtao Li --- drivers/base/component.c | 12 + drivers/base

[PATCH] drivers/fmc: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/fmc/fmc-debug.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/fmc/fmc-debug.c b/drivers/fmc/fmc-debug.c index 32930722770c..c923d076c807 100644 --- a

[PATCH] bus: mvebu-mbus: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/bus/mvebu-mbus.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 5b2a11a88951..3aaaf484857f 100644

[PATCH] ide: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/ide/ide-proc.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 45c997430332..4c8c7a620d08 100644 --- a/drivers

[PATCH] HSI: omap_ssi: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/hsi/controllers/omap_ssi_core.c | 29 - drivers/hsi/controllers/omap_ssi_port.c | 14 ++-- 2 files changed, 6 insertions(+), 37 deletions(-) diff --git a/drivers/hsi

[PATCH] HID: debug: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-30 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/hid/hid-debug.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index b48100236df8..c530476edba6 100644 --- a/drivers

[PATCH] watchdog: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/watchdog/bcm_kona_wdt.c | 16 +++- drivers/watchdog/ie6xx_wdt.c| 16 +++- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/drivers/watchdog/bcm_kona_wdt.c b

[PATCH] drivers: visorbus: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/visorbus/visorbus_main.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/visorbus/visorbus_main.c b/drivers/visorbus/visorbus_main.c index 0b2434cc4ecd

[PATCH] memory: tegra: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/memory/tegra/tegra124-emc.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/memory/tegra/tegra124-emc.c b/drivers/memory/tegra/tegra124-emc.c index

[PATCH] mtd: remove DEBUGFS_RO_ATTR()

2018-12-01 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define such a macro,so remove DEBUGFS_RO_ATTR.Also use DEFINE_SHOW_ATTRIBUTE to simplify some code. Signed-off-by: Yangtao Li --- drivers/mtd/devices/docg3.c| 15 +-- drivers/mtd/devices/docg3.h| 11

[PATCH] sh: intc: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/sh/intc/virq-debugfs.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/sh/intc/virq-debugfs.c b/drivers/sh/intc/virq-debugfs.c index 9e62ba9311f0..939915a07d99

[PATCH] RAS/CEC: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/ras/cec.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 2d9ec378a8bc..05301ef4820e 100644 --- a/drivers/ras/cec.c

[PATCH 0/2] watchdog: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Yangtao Li (2): watchdog: bcm281xx: convert to DEFINE_SHOW_ATTRIBUTE watchdog: convert to DEFINE_SHOW_ATTRIBUTE drivers/watchdog/bcm_kona_wdt.c | 16 +++- drivers/watchdog/ie6xx_wdt.c| 16 +++- 2 files changed

[PATCH 1/2] watchdog: bcm281xx: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/watchdog/bcm_kona_wdt.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/bcm_kona_wdt.c b/drivers/watchdog/bcm_kona_wdt.c index 1462be9e6fc5

[PATCH 2/2] watchdog: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/watchdog/ie6xx_wdt.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/ie6xx_wdt.c b/drivers/watchdog/ie6xx_wdt.c index 78c2541f5d52..8de9fb1ed371

[PATCH] mmc: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/mmc/core/mmc_test.c | 14 ++ drivers/mmc/host/atmel-mci.c | 31 +-- drivers/mmc/host/omap_hsmmc.c | 14 ++ drivers/mmc/host/s3cmci.c | 30

[PATCH] platform/x86: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/platform/x86/intel_pmc_core.c | 46 --- .../platform/x86/intel_telemetry_debugfs.c| 42 +++-- 2 files changed, 14 insertions(+), 74 deletions(-) diff --git a

[PATCH] remoteproc: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/remoteproc/remoteproc_debugfs.c | 28 - 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc

[PATCH] misc: remove GENWQE_DEBUGFS_RO()

2018-12-01 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define such a macro,so remove GENWQE_DEBUGFS_RO.Also use DEFINE_SHOW_ATTRIBUTE to simplify some code. Signed-off-by: Yangtao Li --- drivers/misc/genwqe/card_debugfs.c | 85 drivers/misc/mic/card

[PATCH v2] mtd: remove DEBUGFS_RO_ATTR()

2018-12-01 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define such a macro,so remove DEBUGFS_RO_ATTR.Also use DEFINE_SHOW_ATTRIBUTE to simplify some code. Signed-off-by: Yangtao Li --- Changes in v2: -Remove a missing DEBUGFS_RO_ATTR --- drivers/mtd/devices/docg3.c| 20

[PATCH] mfd: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/mfd/ab3100-core.c | 15 ++- drivers/mfd/ab3100-otp.c | 16 +++- drivers/mfd/tps65010.c| 14 ++ 3 files changed, 7 insertions(+), 38 deletions(-) diff --git a

[PATCH] s390: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-01 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/s390/block/dasd.c | 15 +-- drivers/s390/cio/qdio_debug.c | 16 ++-- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/drivers/s390/block/dasd.c b/drivers/s390

[PATCH v3] mtd: remove DEBUGFS_RO_ATTR()

2018-12-01 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define such a macro,so remove DEBUGFS_RO_ATTR.Also use DEFINE_SHOW_ATTRIBUTE to simplify some code. Signed-off-by: Yangtao Li --- changes in v3: -remove the blank line between the function definition and DEFINE_SHOW_ATTRIBUTE

[PATCH] mtd: use DEFINE_SHOW_ATTRIBUTE() instead of open-coding it

2018-12-02 Thread Yangtao Li
DEFINE_SHOW_ATTRIBUTE macro can help us simplify the code,so change to it.And change the DEBUGFS_RO_ATTR macro defined in some file to a standard macro. Signed-off-by: Yangtao Li --- drivers/mtd/devices/docg3.c| 16 drivers/mtd/devices/docg3.h| 11 --- drivers

[PATCH] net: stmmac: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-03 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 34 +++ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet

[PATCH] serial/sunsu: fix refcount leak

2018-12-12 Thread Yangtao Li
tting the node from the path as it is not used as pointer. Fix this by use a single variable and drop the refcount right after of_find_node_by_path(). Signed-off-by: Yangtao Li --- drivers/tty/serial/sunsu.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-)

[PATCH v3] media: exynos4-is: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-12 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/media/platform/exynos4-is/fimc-is.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is

[PATCH v3] media: platform: sti: remove bdisp_dbg_declare() and hva_dbg_declare()

2018-12-12 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE. There is no need to define bdisp_dbg_declare and hva_dbg_declare, so remove them. Also use DEFINE_SHOW_ATTRIBUTE to simplify some code. Signed-off-by: Yangtao Li --- .../media/platform/sti/bdisp/bdisp-debug.c| 34 ++ drivers/media

[PATCH v4] Input: i8042 add i8042_is_mr_coffee() helper to avoid refconut leak

2018-12-12 Thread Yangtao Li
of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. Add i8042_is_mr_coffee() helper to avoid refconut leak. Signed-off-by: Yangtao Li --- changes in v4: -fix typo changes in v3: -add i8042_is_mr_coffee --- drivers/input

[PATCH v2] netdevsim: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-12 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- v2: -update subject --- drivers/net/netdevsim/bpf.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/net/netdevsim/bpf.c b/drivers/net/netdevsim/bpf.c index

[PATCH] sunrpc: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-14 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- net/sunrpc/rpc_pipe.c | 19 +++ net/sunrpc/stats.c| 14 +- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index

[PATCH] ipconfig: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-14 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- net/ipv4/ipconfig.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 88212615bf4c..fcb817d0eb24 100644 --- a/net/ipv4/ipconfig.c

[PATCH] 6lowpan: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-14 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- net/6lowpan/debugfs.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/net/6lowpan/debugfs.c b/net/6lowpan/debugfs.c index 24915e0bb9ea..6c152f9ea26e 100644 --- a/net/6lowpan

[PATCH] cxgb4: remove DEFINE_SIMPLE_DEBUGFS_FILE()

2018-12-14 Thread Yangtao Li
We already have the DEFINE_SHOW_ATTRIBUTE. There is no need to define such a macro, so remove DEFINE_SIMPLE_DEBUGFS_FILE. Also use the DEFINE_SHOW_ATTRIBUTE macro to simplify some code. Signed-off-by: Yangtao Li --- .../ethernet/chelsio/cxgb4/cxgb4_debugfs.c| 113

  1   2   3   4   >