From patchwork Mon Jan 18 15:26:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Mouiche X-Patchwork-Id: 8055471 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 52F2E9F440 for ; Mon, 18 Jan 2016 15:28:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8670D2049C for ; Mon, 18 Jan 2016 15:28:36 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 2D6AD20497 for ; Mon, 18 Jan 2016 15:28:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2750426548B; Mon, 18 Jan 2016 16:28:34 +0100 (CET) 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 1DEBA265312; Mon, 18 Jan 2016 16:27:11 +0100 (CET) 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 388D42652F1; Mon, 18 Jan 2016 16:27:08 +0100 (CET) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by alsa0.perex.cz (Postfix) with ESMTP id 9175D260534 for ; Mon, 18 Jan 2016 16:26:45 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id n5so69395065wmn.0 for ; Mon, 18 Jan 2016 07:26:45 -0800 (PST) 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=XKcn23GnZXWYRmr4tuo0xySl9i3S5zaxmQzHdL4pPuw=; b=xzWmAB0BYN1cwyUum47V9SaOHehmVvwZ+Bk+PgN9YPgRdiEie15aSwhMJYHlanEXO0 X/NUE9bxfzyTnvg93wj2WZlGwGxwPTi320fbKfNuZUbq4Q++p/PwQvIdwqZ0fAb6M7zo bYBLkP+kHQT2PAv+vVl+LxYGrw5Zi0T/8RkvgdppyEp2WSvOeZijDsHoNzx/mcHdmTnl shuO9wurQ2Q8ObFwvw3zA0ziFpcpCjPlnDLm5h0avpq/3SrQeZ90oxlOBguAGctBr7EQ ypQtvq0o4EexYciMeqMxNtoi53N74+KZBDyj+gHMJQOAtVrh8CtADR95reIe2pQhywfv rOOA== 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=XKcn23GnZXWYRmr4tuo0xySl9i3S5zaxmQzHdL4pPuw=; b=IdHDmUkm8tkdOD/q8EcbUp/vWkIhLH7AtSyNumaSnR5gQrXxczSHYeRT/hAtItWAu/ akWi0+Evf06tDHu+MP7AaQkn+k34yv+j/dkFEKgVzQqGu4huN5masClG4lJ6l3LmScg+ Z1K9t7z1VvLuFyuGqaSpU+Ku+3XhU3y9pY+nxCm3JOnEpRTcDZbWzBRXwU/0lKxJQezj HF+Zxh+TFU/Ts3jHGAICX/Zix8Wn8JOcxl6KXTBE4hKyJCNe3VQENJ7vUU0fnP/+sNKp zRG6i/7EfokA/onLnl+qmxklpRQWYWfIxqt8WvcPaolPujjBn/mk9OA7HyrCidyJU5Ea /JGA== X-Gm-Message-State: ALoCoQmy1SqiGYC2ICCbq6FJygzfQ5cHEm+wXGUjMq7tDAikAYUDn4AN9A42LlLQibp0J4QrOEHD2FuTzfeSIG9n5yQlOp66Dg== X-Received: by 10.194.24.164 with SMTP id v4mr24331828wjf.138.1453130805236; Mon, 18 Jan 2016 07:26:45 -0800 (PST) Received: from localhost.localdomain (AAnnecy-653-1-87-247.w90-41.abo.wanadoo.fr. [90.41.34.247]) by smtp.gmail.com with ESMTPSA id g3sm24306496wjw.31.2016.01.18.07.26.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jan 2016 07:26:44 -0800 (PST) From: Arnaud Mouiche To: Timur Tabi , Nicolin Chen , Xiubo Li , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, Caleb Crome Date: Mon, 18 Jan 2016 16:26:08 +0100 Message-Id: <1453130771-24419-4-git-send-email-arnaud.mouiche@invoxia.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453130771-24419-1-git-send-email-arnaud.mouiche@invoxia.com> References: <1453130771-24419-1-git-send-email-arnaud.mouiche@invoxia.com> Cc: Arnaud Mouiche Subject: [alsa-devel] [PATCH v3 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 dbd5f10..13613fd 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -275,6 +275,7 @@ struct fsl_ssi_private { struct fsl_ssi_dbg dbg_stats; const struct fsl_ssi_soc_data *soc; + struct device *dev; }; /* @@ -1412,6 +1413,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) {