[PATCH] regulator: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/regulator/core.c | 37 +--- drivers/regulator/dbx500-prcmu.c | 35 -- 2 files changed, 9 insertions(+), 63 deletions(-) diff --git a

[RESEND] mfd: rave-sp: fix typo in rave_sp_checksum comment

2018-12-15 Thread Yangtao Li
Caculated -> Calculated 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 @@ -10

[RESEND] regmap: rbtree: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/base/regmap/regcache-rbtree.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index

[RESEND] regmap: debugfs: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/base/regmap/regmap-debugfs.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index

[RESEND] PM / Domains: remove define_genpd_open_function() and define_genpd_debugfs_fops()

2018-12-15 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. Convert them to DEFINE_SHOW_ATTRIBUTE. Signed-off-by: Yangtao Li --- drivers/base/power/domain.c | 71 + 1

[RESEND] staging: fwserial: convert to DEFINE_SHOW_ATTRIBUTE

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

[RESEND] staging: greybus: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/staging/greybus/loopback.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index

[RESEND] staging: rtlwifi: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/staging/rtlwifi/debug.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtlwifi/debug.c b/drivers/staging/rtlwifi/debug.c index 8999feda29b4

[RESEND] staging: unisys: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/staging/unisys/visorhba/visorhba_main.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys

[RESEND] staging: vc04_services: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-15 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- .../interface/vchiq_arm/vchiq_debugfs.c| 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c b/drivers

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

2018-12-15 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 v5: -fix typo changes in v4: -fix typo changes in v3: -add

[PATCH] ieee802154: at86rf230: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/net/ieee802154/at86rf230.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 3d9e91579866

[PATCH] net: xenbus: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/net/xen-netback/xenbus.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index fe1d52247bbe

[PATCH] fjes: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/net/fjes/fjes_debugfs.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/fjes/fjes_debugfs.c b/drivers/net/fjes/fjes_debugfs.c index 30052ebd52bf

[PATCH] bpf: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- 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 cb3518474f0e..14b4d9774708 100644

[PATCH] bonding: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/net/bonding/bond_debugfs.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c index 3868e1a5126d

[PATCH v4] cpuidle: big.LITTLE: fix refcount leak

2018-12-10 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 v4: -update tile -refactor code,suggested by Daniel --- drivers/cpuidle/cp

[PATCH] PM / sleep: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-11 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- kernel/power/main.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/power/main.c b/kernel/power/main.c index 35b50823d83b..98e76cad128b 100644 --- a/kernel/power

[PATCH] psi: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-11 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- kernel/sched/psi.c | 39 +++ 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index fe24de3fbc93..8d13210f88f4 100644

[PATCH] timekeeping: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-11 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- kernel/time/timekeeping_debug.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/time/timekeeping_debug.c b/kernel/time/timekeeping_debug.c index 238e4be60229

[PATCH v2] staging: rtlwifi: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-21 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- v2: -modify RTL_DEBUGFS_ADD_CORE macro --- drivers/staging/rtlwifi/debug.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtlwifi/debug.c b/drivers

[RESNED] sunrpc: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-21 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- net/sunrpc/rpc_pipe.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 4fda18d47e2c..69663681bf9d 100644 --- a/net

[RESNED] mfd: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-23 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li Acked-for-MFD-by: Lee Jones Acked-by: Linus Walleij --- drivers/mfd/ab3100-core.c | 15 ++- drivers/mfd/ab3100-otp.c | 16 +++- drivers/mfd/tps65010.c| 14 ++ 3 files

[PATCH] clk: highbank: fix refcount leak in hb_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/clk-highbank.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: qoriq: fix refcount leak in clockgen_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/clk-qoriq.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] clk: ti: fix refcount leak in ti_dt_clocks_register()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/ti/clk.c | 8 ++-- 1 file changed, 6 insertions(+), 2

[PATCH] clk: socfpga: fix refcount leak

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/socfpga/clk-pll-a10.c | 1 + drivers/clk/socfpga/clk

[PATCH] clk: samsung: exynos4: fix refcount leak in exynos4_get_xom()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/samsung/clk-exynos4.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: armada-370: fix refcount leak in a370_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/armada-370.c | 4 +++- 1 file changed, 3 insertions

[PATCH] clk: kirkwood: fix refcount leak in kirkwood_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/kirkwood.c | 2 ++ 1 file changed, 2 insertions

[PATCH] clk: armada-xp: fix refcount leak in axp_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/armada-xp.c | 4 +++- 1 file changed, 3 insertions

[PATCH] clk: mv98dx3236: fix refcount leak in mv98dx3236_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/mv98dx3236.c | 4 +++- 1 file changed, 3 insertions

[PATCH] clk: dove: fix refcount leak in dove_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/dove.c | 8 ++-- 1 file changed, 6 insertions

[PATCH] clk: imx6q: fix refcount leak in imx6q_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx6q.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: imx6sx: fix refcount leak in imx6sx_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx6sx.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: imx7d: fix refcount leak in imx7d_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx7d.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: vf610: fix refcount leak in vf610_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-vf610.c | 1 + 1 file changed, 1 insertion

[PATCH] power: supply: remove some duplicated includes

2018-12-26 Thread Yangtao Li
We include of.h twice. It's unnecessary,so just remove them. Signed-off-by: Yangtao Li --- drivers/power/supply/power_supply_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index e853618

[PATCH] csky: fix refcount leak in setup_smp()

2018-12-27 Thread Yangtao Li
The of_find_node_by_type() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/csky/kernel/smp.c | 10 -- 1 file changed, 8 insertions

[PATCH v2] csky: Don't leak device tree node reference

2018-12-27 Thread Yangtao Li
of_find_node_by_type() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. setup_smp() doesn't do that, so fix it by converting to for_each_of_cpu_node(). Signed-off-by: Yangtao Li --- arch/csky/kernel/smp.c | 2 +- 1 file changed, 1 inse

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

[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] mm: mmap: remove verify_mm_writelocked()

2018-11-08 Thread Yangtao Li
: 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] 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: 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] 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] 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] 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 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] 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/deadl

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

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

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

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

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

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

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

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

[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 v4 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-16 Thread Yangtao Li
Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo. Yangtao Li (2): cpufreq: Add sunxi nvmem based CPU scaling driver dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points .../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 + MAINTAINERS

[PATCH v4 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-16 Thread Yangtao Li
For some SoCs, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. The sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to provide the OPP framework with required information. Signed-off-by: Yangtao Li --- MAINTAINERS

[PATCH v4 2/2] dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points

2019-04-16 Thread Yangtao Li
crovolt-: voltage in micro Volts. At runtime, the platform can pick a and matching opp-microvolt- property. HW: : sun50iw-h6 speed0 speed1 speed2 Signed-off-by: Yangtao Li --- .../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 +

[PATCH] PM / Domains: remove unnecessary unlikely()

2019-04-16 Thread Yangtao Li
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- drivers/base/power/domain.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 96a6dc9

[RESEND] dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points

2019-04-18 Thread Yangtao Li
crovolt-: voltage in micro Volts. At runtime, the platform can pick a and matching opp-microvolt- property. HW: : sun50i-h6 speed0 speed1 speed2 Signed-off-by: Yangtao Li Acked-by: Maxime Ripard --- just fix a typo: sun50iw-h

[PATCH 1/2] cpufreq: imx6q: Register an Energy Model

2019-02-06 Thread Yangtao Li
Try and register an Energy Model from imx6q-cpufreq to allow interested subsystems like the task scheduler to use the provided information. Signed-off-by: Yangtao Li --- drivers/cpufreq/imx6q-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers

[PATCH 2/2] cpufreq: OMAP: Register an Energy Model

2019-02-06 Thread Yangtao Li
Try and register an Energy Model from omap-cpufreq.c to allow interested subsystems like the task scheduler to use the provided information. Signed-off-by: Yangtao Li --- drivers/cpufreq/omap-cpufreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/omap

[PATCH] interconnect: convert to DEFINE_SHOW_ATTRIBUTE

2019-03-27 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- drivers/interconnect/core.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 6005a1c189f6..871eb4bc4efc 100644

[PATCH v2 0/5] nvmem: sunxi-sid: add SID controller support for H6

2019-04-02 Thread Yangtao Li
Add SID support for H6, and do some cleanup. For endianness issue, add a new ref_read func. Yangtao Li (5): nvmem: sunxi-sid: fix wrong description in kernel doc nvmem: sunxi-sid: add binding for H6's SID controller nvmem: sunxi-sid: convert to SPDX license tags nvmem: sunxi-sid: ad

[PATCH v2 2/5] nvmem: sunxi-sid: add binding for H6's SID controller

2019-04-02 Thread Yangtao Li
Add a binding for H6's SID controller. Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Yangtao Li --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,

[PATCH v2 3/5] nvmem: sunxi-sid: convert to SPDX license tags

2019-04-02 Thread Yangtao Li
Updates license to use SPDX-License-Identifier. Acked-by: Maxime Ripard Signed-off-by: Yangtao Li --- drivers/nvmem/sunxi_sid.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 570a2e354f30..54620d72ddb9

[PATCH v2 4/5] nvmem: sunxi-sid: add new reg_read func

2019-04-02 Thread Yangtao Li
Because there was an endianness issue. It seems that reg_read function which the nvmem the driver currently exposes is wrong. So add the new read function, the new function is used when the native_endian flag is set. Signed-off-by: Yangtao Li --- drivers/nvmem/sunxi_sid.c | 29

[PATCH v2 5/5] nvmem: sunxi-sid: add support for H6's SID controller

2019-04-02 Thread Yangtao Li
Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before. And convert to use sunxi_sid_read_native func. Signed-off-by: Yangtao Li --- drivers/nvmem/sunxi_sid.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/

[PATCH v2 1/5] nvmem: sunxi-sid: fix wrong description in kernel doc

2019-04-02 Thread Yangtao Li
qfprom->sunxi-sid Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Yangtao Li --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.

[PATCH v2 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-09 Thread Yangtao Li
For some SoCs, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to provide the OPP framework with required information. Signed-off-by: Yangtao Li --- MAINTAINERS

[PATCH v2 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-09 Thread Yangtao Li
Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo. Yangtao Li (2): cpufreq: Add sunxi nvmem based CPU scaling driver dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu .../bindings/opp/sunxi-nvmem-cpufreq.txt | 166 + MAINTAINERS

[PATCH v2 2/2] dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu

2019-04-09 Thread Yangtao Li
t-: voltage in micro Volts. At runtime, the platform can pick a and matching opp-microvolt- property Signed-off-by: Yangtao Li --- .../bindings/opp/sunxi-nvmem-cpufreq.txt | 166 ++ 1 file changed, 166 insertions(+) create mode 100644 Documentation/devicetree/bind

[PATCH v3 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-10 Thread Yangtao Li
Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo. Yangtao Li (2): cpufreq: Add sunxi nvmem based CPU scaling driver dt-bindings: cpufreq: Document allwinner,cpu-operating-points-v2 .../bindings/opp/sunxi-nvmem-cpufreq.txt | 168 + MAINTAINERS

[PATCH v3 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-10 Thread Yangtao Li
For some SoCs, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to provide the OPP framework with required information. Signed-off-by: Yangtao Li --- MAINTAINERS

[PATCH v3 2/2] dt-bindings: cpufreq: Document allwinner,cpu-operating-points-v2

2019-04-10 Thread Yangtao Li
t-: voltage in micro Volts. At runtime, the platform can pick a and matching opp-microvolt- property. HW: : sun50iw-h6 speed0 speed1 speed2 Signed-off-by: Yangtao Li --- .../bindings/opp/sunxi-nvmem-cpufreq.txt | 168 +

[PATCH 00/31] Introduce devm_pm_opp_* API

2021-01-01 Thread Yangtao Li
Hi, This patchset add devm_pm_opp_set_clkname, devm_pm_opp_put_clkname, devm_pm_opp_set_regulators, devm_pm_opp_put_regulators, devm_pm_opp_set_supported_hw, devm_pm_opp_of_add_table and devm_pm_opp_register_notifier. Yangtao Li (31): opp: Add devres wrapper for dev_pm_opp_set_clkname and

[PATCH 02/31] opp: Add devres wrapper for dev_pm_opp_set_regulators and dev_pm_opp_put_regulators

2021-01-01 Thread Yangtao Li
Add devres wrapper for dev_pm_opp_set_regulators() dev_pm_opp_put_regulators () to simplify driver code. Signed-off-by: Yangtao Li --- drivers/opp/core.c | 50 ++ include/linux/pm_opp.h | 9 2 files changed, 59 insertions(+) diff --git a

[PATCH 05/31] opp: Add devres wrapper for dev_pm_opp_register_notifier

2021-01-01 Thread Yangtao Li
Add devres wrapper for dev_pm_opp_register_notifier() to simplify driver code. Signed-off-by: Yangtao Li --- drivers/opp/core.c | 38 ++ include/linux/pm_opp.h | 6 ++ 2 files changed, 44 insertions(+) diff --git a/drivers/opp/core.c b/drivers/opp

[PATCH 04/31] opp: Add devres wrapper for dev_pm_opp_of_add_table

2021-01-01 Thread Yangtao Li
Add devres wrapper for dev_pm_opp_of_add_table() to simplify driver code. Signed-off-by: Yangtao Li --- drivers/opp/of.c | 36 include/linux/pm_opp.h | 6 ++ 2 files changed, 42 insertions(+) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index

<    1   2   3   4   >