From patchwork Wed Apr 11 12:42:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10335391 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 68F2C60134 for ; Wed, 11 Apr 2018 12:43:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 535AB2892B for ; Wed, 11 Apr 2018 12:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 480242893A; Wed, 11 Apr 2018 12:43:08 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B3942892B for ; Wed, 11 Apr 2018 12:43:07 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CADEF2675CD; Wed, 11 Apr 2018 14:42:58 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9F6772673F5; Wed, 11 Apr 2018 14:42:55 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0132.outbound.protection.outlook.com [104.47.0.132]) by alsa0.perex.cz (Postfix) with ESMTP id AA2112673F4 for ; Wed, 11 Apr 2018 14:42:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=K8eYnDv/iWC1VWKS5me5OwSqqL0Uk0udRTEQXev19IE=; b=IaOvTNokPKJUu2qocTb5tkzfSFHAFS5QMXNfkY/tvoSe3YAqM2kEs0O339TDOLqKLQ82QYqoaABDKi8fFpsGmlOQdagOEXsjUdEvJkLdDsj4fQzSrs4ceKy4cTFZ5o4XbV7y+ip1Ey16qr7P4fhi/15Y3LjKsqs/g2r7Sai78CQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2783.eurprd02.prod.outlook.com (2603:10a6:800:db::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Wed, 11 Apr 2018 12:42:51 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Date: Wed, 11 Apr 2018 14:42:38 +0200 Message-Id: <20180411124238.9385-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180411124238.9385-1-peda@axentia.se> References: <20180411124238.9385-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0028.eurprd01.prod.exchangelabs.com (2603:10a6:6:45::41) To VI1PR0202MB2783.eurprd02.prod.outlook.com (2603:10a6:800:db::8) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(2017052603328)(7153060)(7193020); SRVR:VI1PR0202MB2783; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2783; 3:MTV5Catx38PBPEoR1seiSwKOsgR2b2mGV32s8lWevgPMJJ4ZUR0Yx9GIoaEBmVkZUxWUqfZD8OnP7s5pf7qeDCxRENqPW5jffFouONgfikrS32mKg+YFWoxOLZfNaunBZAKQRsIuimqA2nrV4RHqZ4u9M7nKj7w9RkT2YDt/GBccu8HpBze+P4YeKf82BQmIcl8xpQcCwr1ZoRICkbYwGu+CE7No6NrdDw2hfQtq45pSlECR8TBvflbjJSzd6p4l; 25:PhFlErJlaOyRAKPwCedrR+Z1xIHfKbPH6qv7z8h6tBb8UFZaqOfJkCaGGQI+NginyvxZXFnbYHuw/AAGU6sOX49RxToDGTFUxA9UX2/ge34885Bzn97U454lWh+wmXTJyCJsVlbAWBPlqZmLuxcGOCZuBneJRnK+VgVggF97ywWT2vKzS3q4obvGfVGs7/fM+gEqPldP+hVswmQ+CsK7UbNYPff12ehIAZzpqkNoEyIMGAPoNLDHahagK52x7WbjmrlThS1trlWSr0vPItXtmUxQYD4WlDxoRLo6uTXcyjmlsnKQTD4GIqCrPXPTkbR2DOspeM36RAElLNgUxRzMYA==; 31:QLcSL+xAq++MLywoIrq44KbJvWQij2YCJgtByl2/c9aFDj4GoSZ7E6yBA9Z+e4hDes5G0Yot9WPEq8nEzG6yvquWEnbItqeWsC8bqRQVW6FNlIehlUQ4KyAv11oNcET9asuOafVRUHjbfvd6qKrKbgE6wY/qtXihh/98pbB1JzIW6Itk4ObWKmy1dt9yiMu1d4pNPD0IjZhxK94nXsZy7uQlbb8fO2eBu1D0BSInvqk= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2783: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6041310)(20161123558120)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(6072148)(6043046)(201708071742011); SRVR:VI1PR0202MB2783; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2783; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2783; 4:hJOFlbsBuT8Qs7Cj01+gRpZVdSLvUYWCgUqzJhCv+qBJ7u7BJywWPiv1A8eL6capZGlZMw+AuUO7KPfP6FO7xWcvdqwNomRAlvO/+ofHP0NY2I3vrf+0tVhEVdOQSk7Do/i1Hw8TrqAkXq+ggTiy5xEVfejPtt5ma94un67mHd035UdZJrtHSY0PLTguDm1z7CPDOBYrbaLna3xJ1LRtXivE3r6FCIH94WlXQ8eBVS18d0TyT9K0491ymCE7pWFr75cw3yeen/PpjU+r8vjOuw== X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(346002)(376002)(366004)(39380400002)(39830400003)(189003)(199004)(6916009)(6666003)(52116002)(54906003)(7736002)(16586007)(81166006)(6512007)(68736007)(478600001)(81156014)(105586002)(1076002)(39060400002)(66066001)(8676002)(47776003)(305945005)(86362001)(50226002)(486006)(76176011)(316002)(53936002)(446003)(51416003)(8936002)(26005)(11346002)(2616005)(6116002)(186003)(3846002)(16526019)(97736004)(48376002)(25786009)(2351001)(956004)(50466002)(476003)(4326008)(2361001)(6506007)(36756003)(2906002)(106356001)(74482002)(386003)(5660300001)(6486002)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2783; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2783; 23:S8WzTBZQhn2wR3WONZbVg2zBdNn2izini4ijOyx?= =?us-ascii?Q?E8VaPmIFdKt0ZavvAL9AH72VhmRNQus2iS79BuXb6BUrAzW3SeFu05Bhgs/Y?= =?us-ascii?Q?VV1eh+By5lRiXKVJ5dBCRRb7/uI5itxSH1qEYuC7hmwDGp27zMI/ZS17YRYP?= =?us-ascii?Q?yOmkfyNVcAp5iaLV8c0bzZKvRmk/eJ0hHtKdTouwZTSMNyR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4QP+K9Sz/gGWB1O1+UEaPOHRh9g==; 5:USgsyHXNEAy/doawQfYvclMV3qz3Y6bXFrmjYB91EnsieNhy5Gck0nEg3HdEJf6wXf7ndO6zke9tRtKHZB/jwY+9BZVnTsthnhePNqSw8ToK78UcTpNvIQWg0IFCcAKSXuYX5oCgRUOQK1E0YX2Mt+GQZqWhpY3Zi8Sm+lRYXzU=; 24:51Oz4lUk+aaCtRaN9CbZZlazSpXI7hHyqSMt63h8O8YD1Rgr4wfKsw8YPRDQ/FNRBcLOMrxc4LQwsMGqoQdCyUoZdo8hdGcXKGOOPW37DC4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2783; 7:3Xw6VOh0vwkvwHzRk+tVV1BSUva+wGHNpmg0hVzEzEclUabDyHT7rNF3c0O+1oxrO+Jkwd+O1PIkl16UQUFu50p8+48ZTJc1rqKtDTqiOCQjIF9hUCM4lel0VTEj8Dq/gdfVgp7jSzy1BVrMfNhq8MVfesL9di98jGSajmRtcjQzjX0IKmBirSEU2PlVaxJpzfBpf64OU2k44JrpWl8uEa3kE7idmtYoyo0CROPx9W6PdxmzP056iFlQDn279uPf X-MS-Office365-Filtering-Correlation-Id: 4781b84f-e52e-48a3-39f7-08d59fa9bd59 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 12:42:51.0167 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4781b84f-e52e-48a3-39f7-08d59fa9bd59 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2783 Cc: alsa-devel@alsa-project.org, Liam Girdwood , Takashi Iwai , Mark Brown , Peter Rosin Subject: [alsa-devel] [PATCH 2/2] ASoC: tfa9879: switch to using .probe_new X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index e7ca764b5729..15c769528d6d 100644 --- a/sound/soc/codecs/tfa9879.c +++ b/sound/soc/codecs/tfa9879.c @@ -274,8 +274,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { .ops = &tfa9879_dai_ops, }; -static int tfa9879_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tfa9879_i2c_probe(struct i2c_client *i2c) { struct tfa9879_priv *tfa9879; int i; @@ -323,7 +322,7 @@ static struct i2c_driver tfa9879_i2c_driver = { .name = "tfa9879", .of_match_table = tfa9879_of_match, }, - .probe = tfa9879_i2c_probe, + .probe_new = tfa9879_i2c_probe, .remove = tfa9879_i2c_remove, .id_table = tfa9879_i2c_id, };