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: sumeet p X-Patchwork-Id: 912427 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XhP3+xr7"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40jvYZ1SLYz9s0w for ; Sun, 13 May 2018 03:47:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751312AbeELRr2 (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-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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,