From patchwork Fri Jul 19 07:13:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2832653 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1EAF49F4E2 for ; Wed, 24 Jul 2013 11:35:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAE8D2017E for ; Wed, 24 Jul 2013 11:35:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7863D200F7 for ; Wed, 24 Jul 2013 11:35:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65972E6940 for ; Wed, 24 Jul 2013 04:35:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id BEC0DE5ECF for ; Fri, 19 Jul 2013 00:13:49 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQ600M8L9EU7VA0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 19 Jul 2013 16:13:47 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id A7.D2.08825.A27E8E15; Fri, 19 Jul 2013 16:13:46 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-e6-51e8e72a9af1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 72.C7.31505.A27E8E15; Fri, 19 Jul 2013 16:13:46 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQ60005Y9EYALQ0@mmp1.samsung.com>; Fri, 19 Jul 2013 16:13:46 +0900 (KST) From: Jingoo Han To: 'David Airlie' Subject: [PATCH] drm: nouveau: replace strict_strtol() with kstrtol() Date: Fri, 19 Jul 2013 16:13:46 +0900 Message-id: <001201ce844f$825f2780$871d7680$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac6ET2mB/FKkosjWRvGFIygYTWtWwA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsVy+t8zA12t5y8CDW6tt7boPXeSyeLK1/ds FpcXXmJ1YPbY/u0Bq8f97uNMHn1bVjEGMEdx2aSk5mSWpRbp2yVwZXw+942p4DJbxdTJoQ2M x1i7GDk5JARMJNYv/cYGYYtJXLi3Hsjm4hASWMYocf79D7iim59fskMkFjFKHPy8jwXC+cUo ceD0MyaQKjYBNYkvXw4DVXFwiAioSkw7bQ8SZhZwlXgzYQUjiC0MZC/5/IcZxGYBKunb/RTM 5hWwlGjsncEEYQtK/Jh8jwWiV0ti/c7jTBC2vMTmNW+ZIQ5SkNhx9jXYTBEBPYn1l68wQ9SI SOx78Y4R5DYJgWXsEnuOP2KDWCYg8W3yIRaQ2yQEZCU2HYCaIylxcMUNlgmMYrOQrJ6FZPUs JKtnIVmxgJFlFaNoakFyQXFSepGRXnFibnFpXrpecn7uJkZITPXtYLx5wPoQYzLQ+onMUqLJ +cCYzCuJNzQ2M7IwNTE1NjK3NCNNWEmcV63FOlBIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QD o9BJuWPnu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gAj PeltHAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Wed, 24 Jul 2013 04:34:05 -0700 Cc: Jingoo Han , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The usage of strict_strtol() is not preferred, because strict_strtol() is obsolete. Thus, kstrtol() should be used. Signed-off-by: Jingoo Han --- drivers/gpu/drm/nouveau/nouveau_pm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index 936b442..28c9891 100644 --- a/drivers/gpu/drm/nouveau/nouveau_pm.c +++ b/drivers/gpu/drm/nouveau/nouveau_pm.c @@ -740,8 +740,9 @@ nouveau_hwmon_set_pwm1_enable(struct device *d, struct device_attribute *a, long value; int ret; - if (strict_strtol(buf, 10, &value) == -EINVAL) - return -EINVAL; + ret = kstrtol(buf, 10, &value); + if (ret) + return ret; ret = therm->attr_set(therm, NOUVEAU_THERM_ATTR_FAN_MODE, value); if (ret)