Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B095C64EC4 for ; Thu, 9 Mar 2023 08:31:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbjCIIbN (ORCPT ); Thu, 9 Mar 2023 03:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjCIIau (ORCPT ); Thu, 9 Mar 2023 03:30:50 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40013DE1D0; Thu, 9 Mar 2023 00:29:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678350544; x=1709886544; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iL2MAYQRyw6sIBcex3hfg5K8mlbgbGU+jM45YnmCajs=; b=hfxLBceDTCK2vA9przOVw4LIrvCJNxOyo17uIpeFAMPDQ2rWPsMtWUoX NPxohEPsE/NvNhTgAt7ZqERoaK3GMlX+Jk63ymfdKdHczDn+E7DLFnl4n 3NUB9ph3X70MuSgIjlS/dQXQRJP/VmJ7D/XAHi0+Mp+oWORnVDtrxDHgv JWZ7qBYB2nWDAi6dUX/Ivx/C7jBB194BgvIiTlfszG92X0NSNd9kJWzwf nxmAaoXI5Kxmp+oT1owfDAU94cvWUlH8+DUY7qafwMZ9+lLpOE3Ba0baJ 0w8u4tBDYjJhio2YpYcErZmjs06OOskzRlMRClH4V+J7IgzkXyEafuHGv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="316046816" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="316046816" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:28:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="741467479" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="741467479" Received: from jnikula-mobl4.fi.intel.com (HELO localhost) ([10.237.66.145]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:28:49 -0800 From: Jani Nikula To: linux-kernel@vger.kernel.org Cc: Jani Nikula , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: constify struct hwmon_chip_info info member harder Date: Thu, 9 Mar 2023 10:28:41 +0200 Message-Id: <20230309082841.400118-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let the struct hwmon_chip_info info member be a pointer to a const array of const pointers, rather than mutable array of const pointers. Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org Signed-off-by: Jani Nikula --- include/linux/hwmon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index c1b62384b6ee..492dd27a5dd8 100644 --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h @@ -430,7 +430,7 @@ struct hwmon_channel_info { */ struct hwmon_chip_info { const struct hwmon_ops *ops; - const struct hwmon_channel_info **info; + const struct hwmon_channel_info * const *info; }; /* hwmon_device_register() is deprecated */ -- 2.39.1