From patchwork Tue May 3 12:13:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Mouiche X-Patchwork-Id: 9003501 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0D7A99F372 for ; Tue, 3 May 2016 13:01:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B8C020221 for ; Tue, 3 May 2016 13:01:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D845E200DB for ; Tue, 3 May 2016 13:01:26 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DE7BA265DC3; Tue, 3 May 2016 15:01:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5205B2660EE; Tue, 3 May 2016 14:44:51 +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 543A72660EA; Tue, 3 May 2016 14:44:50 +0200 (CEST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by alsa0.perex.cz (Postfix) with ESMTP id C3E75266561 for ; Tue, 3 May 2016 14:14:12 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id g17so35397285wme.1 for ; Tue, 03 May 2016 05:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=invoxia-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9aHuL7HFbNQZEeqjHBgmwX62MojG/8LBc8kbLYXT+jE=; b=hL5V4uBeJ39h2ufP6dxM8pt3FBloQ5AI4UiQ9QmqKKDCGuYe6YDxyINStm0Ryf3BUH g4ibwP8xcEBNQQ5Jffry492ysNCPp0N6qFCvy0v1Zlid9jCuRtufKk3KY2492ZAjCdHE v2ViZt44IWOsmdlaAvp82HgjwqQeiDM6+eJVmesvsMhojU7tZfuqS40oJDLjpgCgyI0W RyBYGMIL9pZxPKagysgv+dWLZMx+pvtxl2kbw+3ZDp8cPHnfD29wMDpbYDGcb87HHDBz FUz9ULSlO4hlY5MarY5pitg9PizF3cgE4nhJXwob88i1IxQ2l02S9t+JL05NOkjYBZaB 682w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9aHuL7HFbNQZEeqjHBgmwX62MojG/8LBc8kbLYXT+jE=; b=fdr3Mezq7wpBHS54MFwF2SPCB1SPMD3F+iyX7lsk8xYCI+g29rMoEkpjZY8DdghAbl /K64D3VpUl7JxH0LpCRF1Yg20Yg5EkpnU0OQkc2+2WlMbJZJ+Ete5cW1LfKcnioCGq24 29/gX01/PWqmBOpgbFZNwutKgVG+lffM7zCFcGGIgjbDs3250kolMX+DIrBhdMGrFJf5 fWv2AJ6ukhyQEmTDoZfJV7PQjzdseF0NkmQCie4WWzKiT74TzUaym/btMcQ/VH7DG78J dTySPvGfc2ZRq9TveSl/xelQHsiI00zeW7E0/gmu/6wPzws24wk5/b64neFi2KHWb19W G6nw== X-Gm-Message-State: AOPr4FWk1jm7yQGd8JDilbgwazpAKGppfJoGX1wmRn6mTsOuVgbLj5sf/k/XIXZefdyWcKGS X-Received: by 10.194.87.103 with SMTP id w7mr2569592wjz.13.1462277652512; Tue, 03 May 2016 05:14:12 -0700 (PDT) Received: from localhost.localdomain (AAnnecy-653-1-104-42.w90-41.abo.wanadoo.fr. [90.41.64.42]) by smtp.gmail.com with ESMTPSA id k133sm24323995wmg.7.2016.05.03.05.14.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 May 2016 05:14:11 -0700 (PDT) From: Arnaud Mouiche To: Timur Tabi , Nicolin Chen , Xiubo Li , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, festevam@gmail.com, caleb@crome.org Date: Tue, 3 May 2016 14:13:57 +0200 Message-Id: <1462277640-20052-4-git-send-email-arnaud.mouiche@invoxia.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462277640-20052-1-git-send-email-arnaud.mouiche@invoxia.com> References: <1462277640-20052-1-git-send-email-arnaud.mouiche@invoxia.com> Cc: Arnaud Mouiche Subject: [alsa-devel] [PATCH v4 3/6] ASoC: fsl_ssi: Save a dev reference for dev_err() purpose. 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Most of functions only receive the ssi_private reference and don't have a knowledge of 'dev' pointer, even for debug purpose. Signed-off-by: Arnaud Mouiche Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 1a9d0ad..695f041 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -262,6 +262,7 @@ struct fsl_ssi_private { struct fsl_ssi_dbg dbg_stats; const struct fsl_ssi_soc_data *soc; + struct device *dev; }; /* @@ -1405,6 +1406,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) } ssi_private->soc = of_id->data; + ssi_private->dev = &pdev->dev; sprop = of_get_property(np, "fsl,mode", NULL); if (sprop) {