From patchwork Sat May 12 17:47:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srplinux2008 X-Patchwork-Id: 10395941 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 9BF8A602B1 for ; Sat, 12 May 2018 17:47:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 890CC28C26 for ; Sat, 12 May 2018 17:47:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7931928F5B; Sat, 12 May 2018 17:47:30 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 2600828C26 for ; Sat, 12 May 2018 17:47:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751362AbeELRr2 (ORCPT ); Sat, 12 May 2018 13:47:28 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:41540 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbeELRr1 (ORCPT ); Sat, 12 May 2018 13:47:27 -0400 Received: by mail-pg0-f66.google.com with SMTP id w4-v6so2109830pgq.8; Sat, 12 May 2018 10:47:27 -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=b9+fXJxwoIhoKNk1OJEcCO2HeivC2+ah26MX003DLOc=; b=XhP3+xr7mWnC1Vp6ovXdQUtYG12gc85xbY6P1m20VeeYUvJ7hNB8kdTZxHn4RFy9k8 6XuJ30w52Y51jsMOBH9Siwmd3X0epUbPFbXJAl3djEC6pBzlueToVxNfxDIqRm5J/M7z Bkg/rseWB+hlTSPgs6YG4LyXKQnvEPHWPUt4bK6cMf8tX85ianHJEVvKJ7GAysIaVsVQ Lg+xKGJ7kkFYhEv0tx4IONbmvT+Z1QmU6agvZT8FMCp5l0BRcM71TTAeB+xJPDbm8jbJ r9wf2Ld94MM/rQHnt9FY5ABZNTxEHUNvXMgzhXXpN5JqCx9KlL9cid7ZSefGp3bYAAfy PR7g== 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=b9+fXJxwoIhoKNk1OJEcCO2HeivC2+ah26MX003DLOc=; b=YfWzDpKVqURJxPNX3WnkS1mASUWSTh96DbsR3RhAc9OOwI+p8l0FlnILAq+7WNarnI pHQWpRHrWD4LeJ+g86AByfSpwykdNWxj+XLorx0SQN1gjDMnsurNpI9aX+jtGqNhtsyl g3xKLBbUrJk/QUrrOX2ER2ZIM6kukgjHZ5Jtjpb556wsziw1nQtxYhkx3b7h9z4PDqe3 aEdjLltOqGLvu89PNXRAu+5OacBgMe5JMa9YL6TUtAVri8/QRzUuKgWuA6/u5D7PtGey Enxu9o3QH66vNA6TDL2sYSF1q42IEFuwW11wyttp+O3hrzU8TfGJ+oymO8w4GQziRUM9 q2Ng== X-Gm-Message-State: ALKqPwdfdu4fuaeSRIKH3I5MmE7/t0rUHWRkUbhFFgAZRGIZE5ZFm+Wt uzAMlbKurGfCU+Li8jLTVro= X-Google-Smtp-Source: AB8JxZqU7BAfgW72jRumFxNnxIbf7jPw1O59arFgRsRIzkLd2ZWOsHciJXNhpqn9I+BsguZ+4Mrw9w== X-Received: by 2002:a65:47c8:: with SMTP id f8-v6mr3308828pgs.430.1526147247279; Sat, 12 May 2018 10:47:27 -0700 (PDT) Received: from localhost ([171.76.94.231]) by smtp.gmail.com with ESMTPSA id j1-v6sm12702771pfc.159.2018.05.12.10.47.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 May 2018 10:47:26 -0700 (PDT) From: sumeet p To: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, srplinux2008@gmail.com Subject: [PATCH V2] thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops Date: Sat, 12 May 2018 23:17:08 +0530 Message-Id: <1526147228-5317-1-git-send-email-srplinux2008@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Correct the typecast with const to struct thermal_cooling_device_ops. It is the last argument to the function thermal_of_cooling_device_register and this argument is of type const. So, declare this structure thermal_cooling_device_ops as constant. Signed-off-by: sumeet p Acked-by: Thierry Reding --- Changes in V2: - Updated Signed-off-by with correct name. --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 455b58c..72da745 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -926,7 +926,7 @@ static int throt_set_cdev_state(struct thermal_cooling_device *cdev, return 0; } -static struct thermal_cooling_device_ops throt_cooling_ops = { +static const struct thermal_cooling_device_ops throt_cooling_ops = { .get_max_state = throt_get_cdev_max_state, .get_cur_state = throt_get_cdev_cur_state, .set_cur_state = throt_set_cdev_state,