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
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
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
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
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
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
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
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
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
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 +---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(-)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+++
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(-)
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
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
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
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
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
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
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
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 - 100 of 365 matches
Mail list logo