From patchwork Sat Jun 1 07:31:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2647311 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EBA98DF215 for ; Sat, 1 Jun 2013 07:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756652Ab3FAHbY (ORCPT ); Sat, 1 Jun 2013 03:31:24 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:13905 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624Ab3FAHbX (ORCPT ); Sat, 1 Jun 2013 03:31:23 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MNP0028TE8ABUE0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Sat, 01 Jun 2013 16:31:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 6D.7D.29708.A43A9A15; Sat, 01 Jun 2013 16:31:22 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-db-51a9a34a212a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 32.1B.28381.A43A9A15; Sat, 01 Jun 2013 16:31:22 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MNP009DEE89XK00@mmp2.samsung.com>; Sat, 01 Jun 2013 16:31:22 +0900 (KST) From: Jingoo Han To: Jean-Christophe PLAGNIOL-VILLARD Cc: 'Tomi Valkeinen' , linux-fbdev@vger.kernel.org, Timur Tabi , Tony Prisk , Jingoo Han Subject: [PATCH] video: replace strict_strtoul() with kstrtoul() Date: Sat, 01 Jun 2013 16:31:21 +0900 Message-id: <001401ce5e9a$03b485e0$0b1d91a0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5emd3chlEv4cMDSXK/nRNNxUuIeQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zI12vxSsDDXp/8FhcXniJ1eJE3wdW i5bLK5gt1j18wWTR9GQ9o8X6+bfYHNg8Xl24w+Jx/n8Lu0ffllWMHtsXzGbzOH5jO5PH501y AWxRXDYpqTmZZalF+nYJXBl/NraxFfSKVHy8MJetgfE3fxcjJ4eEgIlEx/RWRghbTOLCvfVs XYxcHEICyxglNvScY4MpWne9lR0iMZ1RYurff6wQzi9GiaUT1oBVsQmoSXz5cpgdxBYRsJE4 9/Mx2FhmgQ2MEje6bEFsYQEHie9HvoLVswioSmw/3wRWwytgKXHq/VUmCFtQ4sfkeywQvVoS 63ceZ4Kw5SU2r3nLDHGRgsSOs6+BejmAdulJzL9XA1EiIrHvxTtGkNskBM6xS+xY+JMZYpeA xLfJh1hA6iUEZCU2HYAaIylxcMUNlgmMYrOQbJ6FZPMsJJtnIVmxgJFlFaNoakFyQXFSepGJ XnFibnFpXrpecn7uJkZIPE7YwXjvgPUhxmSg9ROZpUST84HxnFcSb2hsZmRhamJqbGRuaUaa sJI4r3qLdaCQQHpiSWp2ampBalF8UWlOavEhRiYOTqkGxv63paJbT53hXliio7VYf5XQQm6r rb0lUYYcTHOWu3m8CC/PvGCYbCXB3fFlwbNliyS+VWWkdRmzdG0oWvWnLWedXX6OWYf0fLFI T4k7T/W6m147unb8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linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han --- drivers/video/fsl-diu-fb.c | 4 ++-- drivers/video/omap2/displays/panel-taal.c | 6 +++--- drivers/video/wm8505fb.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index 6c27805..6dd7225 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c @@ -469,7 +469,7 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s) unsigned long val; if (s) { - if (!strict_strtoul(s, 10, &val) && (val <= 2)) + if (!kstrtoul(s, 10, &val) && (val <= 2)) port = (enum fsl_diu_monitor_port) val; else if (strncmp(s, "lvds", 4) == 0) port = FSL_DIU_PORT_LVDS; @@ -1853,7 +1853,7 @@ static int __init fsl_diu_setup(char *options) if (!strncmp(opt, "monitor=", 8)) { monitor_port = fsl_diu_name_to_port(opt + 8); } else if (!strncmp(opt, "bpp=", 4)) { - if (!strict_strtoul(opt + 4, 10, &val)) + if (!kstrtoul(opt + 4, 10, &val)) default_bpp = val; } else fb_mode = opt; diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index c4f78bd..52541f2 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c @@ -573,7 +573,7 @@ static ssize_t taal_store_esd_interval(struct device *dev, unsigned long t; int r; - r = strict_strtoul(buf, 10, &t); + r = kstrtoul(buf, 10, &t); if (r) return r; @@ -611,7 +611,7 @@ static ssize_t taal_store_ulps(struct device *dev, unsigned long t; int r; - r = strict_strtoul(buf, 10, &t); + r = kstrtoul(buf, 10, &t); if (r) return r; @@ -660,7 +660,7 @@ static ssize_t taal_store_ulps_timeout(struct device *dev, unsigned long t; int r; - r = strict_strtoul(buf, 10, &t); + r = kstrtoul(buf, 10, &t); if (r) return r; diff --git a/drivers/video/wm8505fb.c b/drivers/video/wm8505fb.c index 01f9ace..3072f30 100644 --- a/drivers/video/wm8505fb.c +++ b/drivers/video/wm8505fb.c @@ -173,7 +173,7 @@ static ssize_t contrast_store(struct device *dev, struct wm8505fb_info *fbi = to_wm8505fb_info(info); unsigned long tmp; - if (strict_strtoul(buf, 10, &tmp) || (tmp > 0xff)) + if (kstrtoul(buf, 10, &tmp) || (tmp > 0xff)) return -EINVAL; fbi->contrast = tmp;