Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1162781lqb; Thu, 30 May 2024 02:03:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtU6P04UoiU/UV1dDHsRMBEs4wJvjJ7ior33JE+CyRXZ7KobUVCPVghFIDLm6cmUWMMV01XzWaFva5dK6/xW6tzZN6kvFkWbTJcxO4Aw== X-Google-Smtp-Source: AGHT+IEq0ES9d8KboNICMyDvw2vORxilx9sRhmGpFWa5VmxFvUcgSyni42Zm909c6ASyPvok+K17 X-Received: by 2002:a17:906:4546:b0:a66:6462:55cf with SMTP id a640c23a62f3a-a666462569dmr62097266b.32.1717059784225; Thu, 30 May 2024 02:03:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717059784; cv=pass; d=google.com; s=arc-20160816; b=Q4H+0236Aslfj923+sPltstvBAGrJqcIETQWCCgVT6uSsE4L00FeAiJeswVuuBXfbI kSYvbsq7rloJikjnGKB9kpwOY3lEoUhH1/Mf/6vzwTASW0hb46bv808/9olah5KnVRPu IezMW4gO7HBV474/S70Z4z6KfG7L2SzZalJAiShXY4Laiqorb2fYpDKeIW1umU3mQMrG 7MnAvm4VXt5jOBM7YeSWZuM19Q1w5IvbsfKlL5b52FwitUlVXytGOuUO9HALndV82LGe McXFAF3IFkzah4y0/E5fA1PbBU7RsIEV7IzohZi8qs1o+RUUGmkkfQxyN25S+A/aKVS/ dBow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Od8GwbL0RL0UVBs6NCs5JlGlofA2/1xqGCy3akC8KKY=; fh=65bVKmnTFATSk9bGG8ZGO/Zm5BvxobMQO14oyJZlvZg=; b=oRFlpzWtSNfqjyEtZIFOW81Q/845UYMQw/zG/XxcVcja6yKUEgFynJn8sfhU9qYMqE k+SIohmMELyhzYZlidkoMVFFQfMKKIA2UeHTFGLIeLSsmn5tGGCudW5vR2LiOu1Dm2b/ ELWzP8O3BwukkhVjj64A25Rqje82QmywfGmzYlPjcXDmBMeWXH3tZAW+43+9CwL9sshP /Msfe/MaksZybBXBJi1SUosBX0z5vmP/tKtSTYjah7HD/Nsg/3Vou5AQmVsgoayWmkrK Ug406Wer46qpSHrktysD53itKC4sfrHY5I9gzPCIfhXQgYtQpF9+PqtLjNoVgQqAx8h2 4WFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-195124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a65c0f82c05si122599066b.54.2024.05.30.02.03.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-195124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7084F1F2317A for ; Thu, 30 May 2024 09:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49E6217D359; Thu, 30 May 2024 08:58:41 +0000 (UTC) Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 410BA18509A for ; Thu, 30 May 2024 08:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059520; cv=none; b=grKXdSl50UyzZPjUVqYea+pyXoSLJ+e7lPxVi07J6dbJ9lkoGohHXKqGA/e7Wh5IbNNE1hlxItKNNU5+7HzWqiBy7pvpM/kOxz0Cg3VyGHT3cf5VU5UKhT8WUchTrZFqM16iUmpJkPfCiWT1fc2T0s8msNwBrUmE0hgXIw1aEFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059520; c=relaxed/simple; bh=AtdSj8Gi5BjDdlTV9ZqdN7OUIGwv22hj9Vwr0vi/QVA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DyXGDm1UK70cfEHiaS+RPMMHJx73nfYzeDycocO6XfkvtSg2MUgwsJ4JpqJ80WQOuN3fq1qtgZOUq487LyJkhdIAddMH+2rrcRLpAwnrxQI1MM/BUkSYmUmwck+9g2USQfr+eF8X8hpD8uY5+iZyg/CC617NM0U7fzETUpcQ1Yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id cd6d5db0-1e62-11ef-8e2e-005056bdf889; Thu, 30 May 2024 11:58:37 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , AngeloGioacchino Del Regno , Daniel Golle , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org Cc: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , Sean Wang , Matthias Brugger , Paul Cercueil , Lakshmi Sowjanya D , Andy Shevchenko Subject: [PATCH v3 11/11] pinctrl: pinmux: Remove unused members from struct function_desc Date: Thu, 30 May 2024 11:55:20 +0300 Message-ID: <20240530085745.1539925-12-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530085745.1539925-1-andy.shevchenko@gmail.com> References: <20240530085745.1539925-1-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Andy Shevchenko All drivers are converted to use embedded struct pinfunction. Remove unused members from struct function_desc. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/pinmux.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/pinctrl/pinmux.h b/drivers/pinctrl/pinmux.h index 9b57c1cc9d50..2965ec20b77f 100644 --- a/drivers/pinctrl/pinmux.h +++ b/drivers/pinctrl/pinmux.h @@ -134,16 +134,10 @@ static inline void pinmux_init_device_debugfs(struct dentry *devroot, /** * struct function_desc - generic function descriptor * @func: generic data of the pin function (name and groups of pins) - * @name: name of the function - * @group_names: array of pin group names - * @num_group_names: number of pin group names * @data: pin controller driver specific data */ struct function_desc { struct pinfunction func; - const char *name; - const char * const *group_names; - int num_group_names; void *data; }; @@ -151,9 +145,6 @@ struct function_desc { #define PINCTRL_FUNCTION_DESC(_name, _grps, _num_grps, _data) \ (struct function_desc) { \ .func = PINCTRL_PINFUNCTION(_name, _grps, _num_grps), \ - .name = _name, \ - .group_names = _grps, \ - .num_group_names = _num_grps, \ .data = _data, \ } -- 2.45.1