Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4051548rdb; Thu, 14 Sep 2023 10:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqzodimWKJ55IsSZ2/UG6AiPM+YXkAptmfagjI3obh9d4B23uPBqv++JdiAcjUbMUWiEQH X-Received: by 2002:a05:6a20:958d:b0:159:ee0f:b9e9 with SMTP id iu13-20020a056a20958d00b00159ee0fb9e9mr1925279pzb.53.1694711616653; Thu, 14 Sep 2023 10:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694711616; cv=none; d=google.com; s=arc-20160816; b=XSr5/mFsIluNKAT7L82sfUD8N+xuhk5y1W8Dmtyrqg+8NN2ixTYenlASSzSumQvAsb cEU8znWgPaGqaxzmCKh0xUska+VQog0BgVQQoDweTTH39EbtB5TpCCp7NsECgv1j1OXF tW9DB5lpa8ybv2YFyXYKIpshQj1Zwo/8m43ZQLH5zdegX+p4W8WAM7jF1S6ohDi2f7yc zZ0NkzVqoQOxncDPT4uOn74BAEf5I66lkev3vNc7oJvOMo0HVaRKfIxs19XbHbK7PcnI 64h6SRlUTTkBThswPfDMxDrr4S53Lazv1LSeHOQeVYoo3PFgV5QN9xjjKhowfS+mmDJQ gPog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=S2UpFO3lB2wyOwT/WGOW/cnqkjwF0wKC7PyTNKd0P38=; fh=msJyvNxU746DPxHNUm730fSh0XzR8hw6ZQ26j1rHfOg=; b=fdGCGCAOftictmnAZUDaWhEjDsOL28aoxyjsk1nwWRuOw9qqjZNbvFfGYBRE1fMCbj TIraFRFlv/YFnHr6xoUXCQaOBhlNd3cRP8MGrykyS/UGXq3fP+rHbQjLY15qIHfo1vI9 PnXSor51e6z6IKpKnTlaVfe5bf/6jNJPAgm4Eibb5Ps4Zi7ZfaFQeTdLOung9fplomWf po7Kg0wUZwmVYDHqTNGrMvIHdNiNY/4U7uj2nTcUNCabBUWvgr+5edcHEVO9JsGz4El5 8kbxpJ1t6Uc/RkbxzKfythHhROvUnFFFzUjR2GCnGQAAW5bQ+pd3nzsy3tppP0pEBfiK 47Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=DmRsOdku; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s72-20020a632c4b000000b00553813c2df0si1813005pgs.513.2023.09.14.10.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 10:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=DmRsOdku; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E019F83A0940; Thu, 14 Sep 2023 08:09:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240130AbjINPJd (ORCPT + 99 others); Thu, 14 Sep 2023 11:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232858AbjINPJc (ORCPT ); Thu, 14 Sep 2023 11:09:32 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35133A8 for ; Thu, 14 Sep 2023 08:09:28 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38ECunMH020490; Thu, 14 Sep 2023 10:09:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=S 2UpFO3lB2wyOwT/WGOW/cnqkjwF0wKC7PyTNKd0P38=; b=DmRsOdkuy3W3BezcB 5Rh02PdcQCe+j1op82uw3Ej2v5dXcxSuhcYsY95W1ecqC8pYiqz+r7FmogLOvOru cXNHPWDWdGZnKkkK3U+xEOvlIKBhnDk8TtjREjL5NeTiheMnrcA66Y69k87GxSOc jBfg2/DeEhXIXS3Hd9okML6gnJaWDEGKCYZFSL1SJyqfho80QCwDopeRZ79V9rop IGUgQi1yLdjTXKeFRAcMLvjFm1utUcd1kydoruPJDIud4haJzte95bWch/02Wql7 xmzUnJUsmDGz8pb3lx2qe/kxXlJboltnLBO5JOwasFLw97mCxuJv+T/r3KqN/6PG JOysw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3t2y7sj90x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 10:09:21 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Thu, 14 Sep 2023 16:09:20 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Thu, 14 Sep 2023 16:09:20 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.215]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id F1E913563; Thu, 14 Sep 2023 15:09:19 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Richard Fitzgerald Subject: [PATCH 0/3] ASoC: cs35l56: Define and export I2C/SPI pm_ops only if needed Date: Thu, 14 Sep 2023 16:09:15 +0100 Message-ID: <20230914150918.14505-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: _QPw9Fkw16YQYjvTJXiCeOUVT2RyzeqM X-Proofpoint-ORIG-GUID: _QPw9Fkw16YQYjvTJXiCeOUVT2RyzeqM X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 08:09:38 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email These 3 patches update the pm_ops for I2C/SPI so that they are only built and exported if they are needed. Richard Fitzgerald (3): ASoC: cs35l56: Use pm_ptr() ASoC: cs35l56: Use new export macro for dev_pm_ops ASoC: cs35l56: Omit cs35l56_pm_ops_i2c_spi if I2C/SPI not enabled sound/soc/codecs/cs35l56-i2c.c | 2 +- sound/soc/codecs/cs35l56-sdw.c | 2 +- sound/soc/codecs/cs35l56-spi.c | 2 +- sound/soc/codecs/cs35l56.c | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) -- 2.30.2