[PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Yangtao Li
--- kernel/softirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index 6f584861d329..6193e1d1b30d 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -257,7 +257,7 @@ asmlinkage __visible void __softirq_entry __do_softirq(void)

[PATCH] arm64: kdump: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- arch/arm64/kernel/crash_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/crash_dump.c b/arch/arm64/kernel/crash_dump.c index f46d57c31443..6b5037ed15b2 100644 --- a/arch/arm64/kernel/crash_dump.c +++ b/arch/arm64/kernel

[PATCH] dmaengine: fix some typo

2018-11-01 Thread Yangtao Li
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 a15592383d4e..7997e9bb7e10 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c @@ -993,7

[PATCH] i2c: rk3x: fix some typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/i2c/busses/i2c-rk3x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index b8a2728dd4b6..fe347e8e2a23 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses

[PATCH] mfd: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/mfd/rave-sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rave-sp.c b/drivers/mfd/rave-sp.c index 2a8369657e38..26c7b63e008a 100644 --- a/drivers/mfd/rave-sp.c +++ b/drivers/mfd/rave-sp.c @@ -109,7 +109,7 @@ struct

[PATCH] pinctrl: mt7622: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7622.c b/drivers/pinctrl/mediatek/pinctrl-mt7622.c index 6f931b85701b..9b00c5e6ba8e 100644 --- a/drivers/pinctrl

[PATCH] ring-buffer: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- kernel/trace/ring_buffer_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c index ffba6789c0e2..0564f6db0561 100644 --- a/kernel/trace/ring_buffer_benchmark.c

[PATCH] staging: vt6655: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/staging/vt6655/baseband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index f0b163473426..b5ba0c76fb43 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers

[PATCH] staging: rtl8188eu: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/staging/rtl8188eu/hal/odm_rtl8188e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_rtl8188e.c b/drivers/staging/rtl8188eu/hal/odm_rtl8188e.c index d5001920f77c..5352b0e45cac 100644 --- a/drivers

[PATCH] tomoyo: fix small typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- security/tomoyo/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c index d3d9d9f1edb0..badffc8271c8 100644 --- a/security/tomoyo/util.c +++ b/security/tomoyo/util.c @@ -106,7 +106,7 @@ void

[PATCH] staging: fix some typo

2018-11-01 Thread Yangtao Li
Signed-off-by: Yangtao Li --- drivers/staging/rtl8712/rtl871x_cmd.h | 2 +- drivers/staging/rtl8723bs/include/rtw_cmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x_cmd.h index 24da2ccea04f

[PATCH] sched/core: remove unnecessary unlikely() in push_xx_task

2018-11-03 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use WARN_ON(1). Signed-off-by: Yangtao Li --- kernel/sched/deadline.c | 4 +--- kernel/sched/rt.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c

[PATCH] tracing/fgraph: remove unnecessary unlikely()

2018-11-03 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- kernel/trace/trace_functions_graph.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace

[PATCH] cgroup: remove unnecessary unlikely()

2018-11-03 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- kernel/cgroup/cgroup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 6aaf5dd5383b..2e5d90dfcb49 100644

[PATCH] clockevents: remove unnecessary unlikely()

2018-11-03 Thread Yangtao Li
WARN_ON() and WARN_ON_ONCE() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- kernel/time/clockevents.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c

[PATCH] mm: mmap: remove unnecessary unlikely()

2018-11-04 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- mm/mmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 6c04292e16a7..2077008ade0c 100644 --- a/mm/mmap.c +++ b/mm/mmap.c

[PATCH] mm, slab: remove unnecessary unlikely()

2018-11-04 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- mm/slab_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 7eb8dc136c1c..4f54684f5435 100644 --- a/mm

[PATCH] SoC: nau8825: remove unnecessary unlikely()

2018-11-04 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- sound/soc/codecs/nau8825.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index b9fed99d8b5e

[PATCH] net: skbuff.h: remove unnecessary unlikely()

2018-11-04 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- include/linux/skbuff.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 0ba687454267..7dcfb5591dc3 100644

[PATCH] ARM: mm: dump: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/arm/mm/ptdump_debugfs.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/mm/ptdump_debugfs.c b/arch/arm/mm/ptdump_debugfs.c index be8d87be4b93..201cd467a739 100644

[PATCH] ASoC: fsl_ssi: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- sound/soc/fsl/fsl_ssi_dbg.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c index 1255dfe19eef..6f6294149476 100644

[PATCH] MIPS: math-emu: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/mips/math-emu/me-debugfs.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/mips/math-emu/me-debugfs.c b/arch/mips/math-emu/me-debugfs.c index 62566385ce0e..58798f527356

[PATCH v2] staging: vt6655: fix small typo

2018-11-05 Thread Yangtao Li
Correct spelling mistakes of "Calculate" Signed-off-by: Yangtao Li --- changes in v2: -add changelog --- drivers/staging/vt6655/baseband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseba

[RESEND] Staging: rtl8712: fix small typo

2018-11-05 Thread Yangtao Li
ture->true Signed-off-by: Yangtao Li --- drivers/staging/rtl8712/rtl871x_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x_cmd.h index 24da2ccea04f..37960b04beee 100644 --- a/drivers/staging/rtl8

[RESEND] staging: rtl8723bs: fix small typo

2018-11-05 Thread Yangtao Li
ture->true Signed-off-by: Yangtao Li --- drivers/staging/rtl8723bs/include/rtw_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_cmd.h b/drivers/staging/rtl8723bs/include/rtw_cmd.h index 1530d0ea1d51..7dc5bf050839 100

[PATCH v2] arm64: kdump: fix small typo

2018-11-02 Thread Yangtao Li
This brings the kernel doc in line with the function signature. Signed-off-by: Yangtao Li --- Changes in v2: -add commit message --- arch/arm64/kernel/crash_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/crash_dump.c b/arch/arm64/kernel/crash_dump.c

[PATCH v2] i2c: rk3x: fix some typo

2018-11-02 Thread Yangtao Li
Fix multiple instances of a misspelled "Calculates". Signed-off-by: Yangtao Li Reviewed-by: Heiko Stuebner --- Changes in v2: -add commit message --- drivers/i2c/busses/i2c-rk3x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c

[PATCH v2] staging: fix some typo

2018-11-02 Thread Yangtao Li
ture->true Signed-off-by: Yangtao Li --- Change in v2: -add changelog --- drivers/staging/rtl8712/rtl871x_cmd.h | 2 +- drivers/staging/rtl8723bs/include/rtw_cmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/driv

[PATCH] ARM: OMAP1: clock: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/arm/mach-omap1/clock.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index fa512413a471..c8c6fe88b2d6 100644

[PATCH] PM / QoS: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- kernel/power/qos.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 86d72ffb811b..b7a82502857a 100644 --- a/kernel/power/qos.c

[PATCH] ARM: OMAP: PM: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/arm/mach-omap1/pm.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 3e1de14805e4..998075d3ef86 100644 --- a/arch

[PATCH] apparmor: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- security/apparmor/apparmorfs.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index e09fe4d7307c

[PATCH] MIPS: r2-on-r6-emu: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/mips/kernel/mips-r2-to-r6-emul.c | 32 +-- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/arch/mips/kernel/mips-r2-to-r6-emul.c b/arch/mips/kernel/mips-r2-to-r6

[PATCH] sh: mm: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-06 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/sh/mm/asids-debugfs.c | 15 ++- arch/sh/mm/cache-debugfs.c | 15 ++- arch/sh/mm/tlb-debugfs.c | 15 ++- 3 files changed, 6 insertions(+), 39 deletions(-) diff --git

[PATCH] mm: mmap: remove verify_mm_writelocked()

2018-11-08 Thread Yangtao Li
-by: Yangtao Li --- mm/mmap.c | 16 1 file changed, 16 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index f7cd9cb966c0..1cee506494d2 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2910,16 +2910,6 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size

[PATCH] cpufreq: s3c24xx: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-07 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/cpufreq/s3c24xx-cpufreq-debugfs.c | 46 +++ 1 file changed, 6 insertions(+), 40 deletions(-) diff --git a/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c b/drivers/cpufreq/s3c24xx-cpufreq

[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] 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] 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] 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] 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] 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] 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] 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] 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

[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 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

[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 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 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 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

[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

[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] 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] 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

[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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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

[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 changelog

[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 v2] clocksource/drivers/integrator-ap: add missing of_node_put()

2018-11-24 Thread Yangtao Li
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 +- 1

[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 --git

[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] 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/sysrq.c b

[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] 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(-) 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/drivers/ata

[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 deletions

[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: Yangtao

[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] 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] 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

[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

  1   2   3   4   5   >