[PATCH v2 fbdev-for-next 2/2] fbdev: fix typo in comment

2018-07-01 Thread Yisheng Xie
change beeng to being and occured to occurred. Signed-off-by: Yisheng Xie --- v2: - new add one. include/linux/fb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/fb.h b/include/linux/fb.h index fd31e6f..3e7e753 100644 --- a/include/linux/fb.h +++ b

[PATCH v2 fbdev-for-next 1/2] fbcon: introduce for_each_registered_fb() helper

2018-07-01 Thread Yisheng Xie
It also saves few lines of code in each occurrence. This patch convert all part here at the same time. Suggested-by: Andy Shevchenko Signed-off-by: Yisheng Xie --- v2: - rebase it to fbdev-for-next branch and add one more loop to replace - per Hans - Macro should be protected agains

Re: [PATCH] fbcon: introduce for_each_registered_fb() helper

2018-07-01 Thread Yisheng Xie
which was introduced by: > https://github.com/bzolnier/linux/commit/83d83bebf40132e2d55ec58af666713cc76f9764 OK, I will rebase it to fbdev-for-next in coming version. Thanks Yisheng > > Regards, > > Hans > > > > On 28-06-18 18:20, Yisheng Xie wrote: >> Following

[PATCH] fbcon: introduce for_each_registered_fb() helper

2018-06-29 Thread Yisheng Xie
It also saves few lines of code in each occurrence. This patch convert all part here at the same time. Signed-off-by: Yisheng Xie --- drivers/video/fbdev/core/fbcon.c | 25 + drivers/video/fbdev/core/fbmem.c | 4 +--- include/linux/fb.h | 4 3 files cha

[PATCH v2 11/21] drm/nouveau: use match_string() helper

2018-06-01 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Ben Skeggs Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: nouv...@lists.freedesktop.org Signed-off-by: Yisheng Xie --- v2: - handle err case before normal case

[PATCH v2 12/21] drm: i2c: ch7006: use match_string() helper

2018-06-01 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: David Airlie Cc: Yisheng Xie Cc: Daniel Vetter Cc: Arvind Yadav Cc: dri-devel@lists.freedesktop.org Signed-off-by: Yisheng Xie --- v2: - handle err case before normal

Re: [PATCH 22/33] drm/i915: use match_string() helper

2018-05-23 Thread Yisheng Xie
Hi Jani, On 2018/5/22 16:36, Jani Nikula wrote: > On Tue, 22 May 2018, Andy Shevchenko wrote: >> On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: >>> match_string() returns the index of an array for a matching string, >>> which can be used intead of open

[PATCH 21/33] drm/nouveau: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Ben Skeggs Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: nouv...@lists.freedesktop.org Signed-off-by: Yisheng Xie --- drivers/gpu/drm/nouveau/dispnv04/tvnv17.c

[PATCH 24/33] drm: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Gustavo Padovan Cc: Maarten Lankhorst Cc: Sean Paul Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Signed-off-by: Yisheng Xie --- drivers/gpu/drm

[PATCH 20/33] video: fbdev: pxafb: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Bartlomiej Zolnierkiewicz Cc: Arvind Yadav Cc: dri-devel@lists.freedesktop.org linux-fb...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/video/fbdev/pxafb.c | 6

[PATCH 22/33] drm/i915: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: David Airlie Cc: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Yisheng Xie

[PATCH 23/33] drm: i2c: ch7006: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: David Airlie Cc: Yisheng Xie Cc: Daniel Vetter Cc: Arvind Yadav Cc: dri-devel@lists.freedesktop.org Signed-off-by: Yisheng Xie --- drivers/gpu/drm/i2c/ch7006_drv.c | 13

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-14 Thread Yisheng Xie
Hi Christophe , On 2018/1/4 16:05, Christophe LEROY wrote: > > > Le 25/12/2017 à 02:34, Yisheng Xie a écrit : >> >> >> On 2017/12/24 17:05, christophe leroy wrote: >>> >>> >>> Le 23/12/2017 à 14:48, Greg KH a écrit : >>>> On Sat,

Re: [PATCH v3 19/27] drm: replace devm_ioremap_nocache with devm_ioremap

2018-01-12 Thread Yisheng Xie
Hi Benjamin , On 2018/1/9 17:21, Benjamin Gaignard wrote: > 2017-12-23 12:01 GMT+01:00 Yisheng Xie : >> > Default ioremap is ioremap_nocache, so devm_ioremap has the same >> > function with devm_ioremap_nocache, which can just be killed to >> > save the size of devr

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-03 Thread Yisheng Xie
+ cris/ia64/mn10300/openrisc maintainers On 2017/12/25 9:09, Yisheng Xie wrote: > hi Christophe and Greg, > > On 2017/12/24 16:55, christophe leroy wrote: >> >> >> Le 23/12/2017 à 16:57, Guenter Roeck a écrit : >>> On 12/23/2017 05:48 AM, Greg KH wrote: >

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-27 Thread Yisheng Xie
On 2017/12/24 17:05, christophe leroy wrote: > > > Le 23/12/2017 à 14:48, Greg KH a écrit : >> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: >>> Hi all, >>> >>> When I tried to use devm_ioremap function and review related code, I found

[PATCH v3 27/27] devres: kill devm_ioremap_nocache

2017-12-27 Thread Yisheng Xie
Now, nobody use devm_ioremap_nocache anymore, can it can just be removed. After this patch the size of devres.o will be reduced from 20304 bytes to 18992 bytes. Suggested-by: Greg KH Signed-off-by: Yisheng Xie --- Documentation/driver-model/devres.txt | 1 - include/linux/io.h

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-27 Thread Yisheng Xie
hi Christophe and Greg, On 2017/12/24 16:55, christophe leroy wrote: > > > Le 23/12/2017 à 16:57, Guenter Roeck a écrit : >> On 12/23/2017 05:48 AM, Greg KH wrote: >>> On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: >>>> Hi all, >>>>

[PATCH v3 00/27] kill devm_ioremap_nocache

2017-12-27 Thread Yisheng Xie
kill devm_ioremap_nocache for no need to keep a macro around for the duplicate thing. So here comes v3 and please help to review. Thanks so much! Yisheng Xie [1] https://lkml.org/lkml/2017/11/20/135 [2] https://lkml.org/lkml/2017/11/25/21 Yisheng Xie (27): ASOC: replace devm_ioremap_nocache

[PATCH v3 11/27] video: replace devm_ioremap_nocache with devm_ioremap

2017-12-27 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org Cc: linux-fb...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/video/fbdev/mbx/mbxfb.c | 9 - drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 2 +- drivers/video/fbdev/pxa168fb.c| 4 ++-- 3

Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache

2017-12-27 Thread Yisheng Xie
On 2017/12/23 21:45, Greg KH wrote: > On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote: >> --- a/lib/devres.c >> +++ b/lib/devres.c >> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, >> resource_size_t offset, >

[PATCH v3 19/27] drm: replace devm_ioremap_nocache with devm_ioremap

2017-12-27 Thread Yisheng Xie
devm_ioremap_nocache. Cc: Daniel Vetter Cc: Jani Nikula Cc: Sean Paul Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Signed-off-by: Yisheng Xie --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c