From patchwork Tue Jun 20 07:52:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9798697 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 AD0B660328 for ; Tue, 20 Jun 2017 07:52:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A151A265B9 for ; Tue, 20 Jun 2017 07:52:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95DAC269A3; Tue, 20 Jun 2017 07:52:57 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 3E0C1265B9 for ; Tue, 20 Jun 2017 07:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751928AbdFTHw4 (ORCPT ); Tue, 20 Jun 2017 03:52:56 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33309 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012AbdFTHwz (ORCPT ); Tue, 20 Jun 2017 03:52:55 -0400 Received: by mail-pf0-f196.google.com with SMTP id w12so21359434pfk.0; Tue, 20 Jun 2017 00:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=AHuwGRYcZ82ETPExJ1sLrKmCyUKVxYS7QE+TdJlu8Ts=; b=Yhp0oWejd9zZCe+LFV8X9p9ikwbruEUXjL5B5P0Q7VlPeS1UQVQcHHjonTk6jS2u2F rda4PioT+pKq5axc98T4DfaSLVYsAmlfWpK7m6tAqPhtcdDZJPubrA6N1NrppN80aTpF EDGYkLX30lHmHK3vBC71rr5Uebe9Tj016Vd8QUarNubuAKqDEDgNVcoTYPu+lAM53EiZ 1O7ENg1WQzQe14mCmmbuU3B8M6mca65AnklNExUxJlWovZbAg7LtnbmQtzVgnFt9ZKAF BBKGYZeewlidW+3bEAC/WSByb8TYkJq74XRo+w+l0LamLiZqXFX4WMJJtXxJ0NzrvPdI gwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AHuwGRYcZ82ETPExJ1sLrKmCyUKVxYS7QE+TdJlu8Ts=; b=fbMaH/9+LMW9Uu8XIvq/XfeJw6+qU4P9rIeku+OLM2qC15T6hKVlR+IqNhF4vWdefJ dFXKRS/K4a4tmmfO3e63JAR0njsgH3ldbtRp61VSIMAfkNZd204PRbu4/mPryKxp30q7 HBBpY786+1FYPb99TyyoELOnCPtGekVC9jRAXywZHtZ0F96LdkuCIvC8A6e51knepV0L 9WdYZt7A51ftFB6Y7vkqB/khCk4ORGvFgnaQA5JkJ6o+JZZRE8CnFk2K4OXI+8hlJW8t ikbE8trMNzC/Bj0qBPgPjKxyjK2U8we2u7Z9jr00MNWU935aDmOebeXnLKRZnadTPi7I 8pqA== X-Gm-Message-State: AKS2vOwwJ4De7m9Y+CZmey458DKdKuqZGdLvhhj/NaRIxS6TajMIfPNi /Cz6rrRYVrjrew== X-Received: by 10.99.159.10 with SMTP id g10mr30080666pge.223.1497945174768; Tue, 20 Jun 2017 00:52:54 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id r77sm24500585pfg.95.2017.06.20.00.52.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 00:52:54 -0700 (PDT) From: Arvind Yadav To: thierry.reding@gmail.com, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com Cc: linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] backlight: pwm_bl: make of_device_ids const Date: Tue, 20 Jun 2017 13:22:15 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 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 of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Acked-by: Daniel Thompson Acked-by: Jingoo Han Acked-by: Thierry Reding --- drivers/video/backlight/pwm_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 002f1ce..9bd1768 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -178,7 +178,7 @@ static int pwm_backlight_parse_dt(struct device *dev, return 0; } -static struct of_device_id pwm_backlight_of_match[] = { +static const struct of_device_id pwm_backlight_of_match[] = { { .compatible = "pwm-backlight" }, { } };