From patchwork Fri May 1 15:38:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6310021 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1E9A6BEEE1 for ; Fri, 1 May 2015 15:38:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 415EC2043C for ; Fri, 1 May 2015 15:38:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5790920439 for ; Fri, 1 May 2015 15:38:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753785AbbEAPiy (ORCPT ); Fri, 1 May 2015 11:38:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35285 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753758AbbEAPix (ORCPT ); Fri, 1 May 2015 11:38:53 -0400 Received: by pabtp1 with SMTP id tp1so93835175pab.2; Fri, 01 May 2015 08:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DcIr0HZHLxi+cvkW86bWKuUCnE5ki6Ir5SZxDGm3jyg=; b=sVvMIPxfLrlLzK99HGriBAmrsHYtL+pQJTY+WLJpNq+Dp7gxYXmaFbZUfQrEEFdu9z ZGzZXbg8+U7k4zKnorDT0FoB4mD08toKvBPSU4KqT8mb27uODdoJHVzahW5NW/PZSSnu qJAmmBbbhMuoqT2RG7j8uTCpbId5lLANthWIugMaNq5ll9KVT4//oce80R0Z4SpIUHMn GsJIn3+Tn++Qe8EZjgrxiolfads4MaZEUT7F/l9x70Oi/skWB54dMTol5SueBuPqHYWs 41PHGsfUqxGE8IAAsKKtXSsmBlg/SBY23tK7HtVX8lU1pgf4nweG20ga6KV3bmpcgZhp GawA== X-Received: by 10.70.103.45 with SMTP id ft13mr18497011pdb.149.1430494733410; Fri, 01 May 2015 08:38:53 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id fm3sm5195987pdb.28.2015.05.01.08.38.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:38:52 -0700 (PDT) From: Krzysztof Kozlowski To: Support Opensource , Jingoo Han , Lee Jones , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Sascha Hauer , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/4] video: backlight: da9052: Constify platform_device_id Date: Sat, 2 May 2015 00:38:38 +0900 Message-Id: <1430494721-30793-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/da9052_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/da9052_bl.c b/drivers/video/backlight/da9052_bl.c index b1943e7735a1..fd2be417aa64 100644 --- a/drivers/video/backlight/da9052_bl.c +++ b/drivers/video/backlight/da9052_bl.c @@ -152,7 +152,7 @@ static int da9052_backlight_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id da9052_wled_ids[] = { +static const struct platform_device_id da9052_wled_ids[] = { { .name = "da9052-wled1", .driver_data = DA9052_TYPE_WLED1,