From patchwork Wed Jul 5 15:44:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynn Lei X-Patchwork-Id: 9826759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0DF360317 for ; Wed, 5 Jul 2017 15:44:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF43028560 for ; Wed, 5 Jul 2017 15:44:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D17A62857D; Wed, 5 Jul 2017 15:44:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B6CC28560 for ; Wed, 5 Jul 2017 15:44:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751703AbdGEPoq (ORCPT ); Wed, 5 Jul 2017 11:44:46 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33449 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678AbdGEPoq (ORCPT ); Wed, 5 Jul 2017 11:44:46 -0400 Received: by mail-pg0-f68.google.com with SMTP id u62so32596830pgb.0; Wed, 05 Jul 2017 08:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition; bh=YSml6NGkJnGgpWAo9fjP8bOlGZbaHwr7ivq17PRMD94=; b=m8/LbQfgOLhN9vfaQaNKCHcYTV1ta8Pk6qOZRWRARj60N3I0zlTqxKGq0xwO/0aW/O 7/hb3UF0KbNGJ0bvSL+CtbBNPpUrUEHG0dGEnHZmFPc4vfnbCcDq09fmC9badDOOa/YL v/bbfK2tkJFdESxqSQtKQdu/WkpML7Y125yenIiSBDVA/Rkg0ljmjNF+lHLaut6KFvhn DFW1gk2opxzjLWDFUA3+U+EECrTu0ds9WmfxgKUwc5jV9EWBG03lau5RWwajK7MxjjxP bEXICdNg8BEF2+3XXHP0AtQWxQg5UIKs1R0seY1ojxtrPgrpFBDzqw+5qwljZPXQ/LYP xqfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=YSml6NGkJnGgpWAo9fjP8bOlGZbaHwr7ivq17PRMD94=; b=o2kewWgKswA4Eq+C9oLF+dlhJnBLcdetLZxLDGVS1lYFDpmiUJnJz0oXpnL9K/CWqs APxPogn0Dg+I/+v9BiAdnuhYMfuFpbF9jtuSDJSvqB5d6iO1690qKVWQV3DYuzN7A8gO OmQfGyjQSBTkwOCJ2PwlIXH9ovInI2A1tYhRANLE2Wh0D2i3eOA8ScZ76ic8D22qv6XS NR0NRu7jEQhESQ709z8BRtL3RAijkdpyiKX6EZyh6NVxypm5e7mgw7phR3bGsuQd68Jt byPo7oUteREDbq6fN+794lyRTo13m2IfiD6RPFwuYX5nR8ax9uARJqc/Tux9w0aA3R2E NLsw== X-Gm-Message-State: AIVw113gfins8Vwfw1v43rIXM5Dx2iKNfviWGw1T7WJqHDC3fE8Z/qFq WSSIDb1VlYdEJw== X-Received: by 10.99.147.19 with SMTP id b19mr21748887pge.154.1499269485313; Wed, 05 Jul 2017 08:44:45 -0700 (PDT) Received: from lynnl.yet ([112.64.217.20]) by smtp.gmail.com with ESMTPSA id h80sm51916887pfk.80.2017.07.05.08.44.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jul 2017 08:44:44 -0700 (PDT) From: Lynn Lei X-Google-Original-From: Lynn Lei Date: Wed, 5 Jul 2017 23:44:08 +0800 To: lee.jones@linaro.org Cc: daniel.thompson@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: backlight: gpio_backlight.c: make of_device_id structure const Message-ID: <20170705153838.GA31888@lynnl.yet> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixed a of_device_id structure normally be const warning issue checked by scripts/checkpatch.pl: WARNING: struct of_device_id should normally be const Signed-off-by: Lynn Lei --- drivers/video/backlight/gpio_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 18134416b154..97d976f433c4 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -146,7 +146,7 @@ static int gpio_backlight_probe(struct platform_device *pdev) } #ifdef CONFIG_OF -static struct of_device_id gpio_backlight_of_match[] = { +static const struct of_device_id gpio_backlight_of_match[] = { { .compatible = "gpio-backlight" }, { /* sentinel */ } };