Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6199886imm; Mon, 27 Aug 2018 11:25:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdackRqOVcuvpMm9HPIG39qh4ZR7I66lfp9D5uXK32Rb+64qIqlKe0xor+Endflr4obhqI+j X-Received: by 2002:a62:ad9:: with SMTP id 86-v6mr15470005pfk.57.1535394343153; Mon, 27 Aug 2018 11:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535394343; cv=none; d=google.com; s=arc-20160816; b=mfNygnH71QYzGQWzMnmBW0occTjq+7WYZpMJq1qpKM4b195FBO8y+PGbFHWiasOpbR 9vuAfZZehTZA0LmCnqaBgAM+dmOTukxGQADmHM4ufY2DWNc3e9+h+PkLxGrqVTvcndZ6 6WyS2jg6cLqFAvvhOd6VYNEL/Ae7usebpqv+tGq1ulNY8oM/TGioNSliiAMRmC2an2SP +/LvFyEcBNxCqCYn01+2PvhpiPnRW2Mh46mWya8XeFwR6vZ9IoWVAv4cBDyDhzPp3YfB 3n3usPYG7xKynzwNenK3b9LRA76s2S17QiyjFTDmk3H8VZnjVL95tG3hKKCRuRjoTPIw TUDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=RzNeoAFkebhXg0R57+D1/uloGc/nij2JUFUJGLdnqbs=; b=WJ3UlLpEeH1umD9zDfUwN1SGqbHDvWNejYzNwFcHmfGwtLrGE29JXGXqZp8y7BxniT 0cxRrYFtxWfRGb1+VOXtgA9Aww9Lf4eQn/s2OrOMVVw76ESVYQ/HrQ3EEIXEBvdfDcr2 zmkA99YaBrCeCNBuM/cP5af7BC1uTb62FdSIDzrOmkDtU49CgWUzL3ptJJ01I2akn9Go f9xUPDmeEsXUykbKLUQtH1V4yJzypgt0b43o1wlbvI9eeriQmCfbB8HJ+YCkgW+FkQy3 aVrPxN9v/OjNCwcSYvC4zezzC3N5h/3NpkFHl9E9PCuI6MHTWl7/CuieFkcXxFS4PXA6 +sCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BqmaXo0E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si14734795pgn.663.2018.08.27.11.25.28; Mon, 27 Aug 2018 11:25:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BqmaXo0E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbeH0WLi (ORCPT + 99 others); Mon, 27 Aug 2018 18:11:38 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:53149 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WLi (ORCPT ); Mon, 27 Aug 2018 18:11:38 -0400 Received: by mail-pg1-f202.google.com with SMTP id m4-v6so11461651pgq.19 for ; Mon, 27 Aug 2018 11:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=RzNeoAFkebhXg0R57+D1/uloGc/nij2JUFUJGLdnqbs=; b=BqmaXo0E6SpWa0Cp1YqgJsqgRf2xDDZDUPQhXgcAkvAlVvhzZQzkkLNQQjDMzMi1Vz S8q85U/pik22lkC9mFXkNFc309Y7rM0KWcMdPPx2+qDsuAL7fJxG0EZO47hQCHvuq7tg zvuSboPReCzv4HG9PAP8UmtG0HefvjOYPx4DHJco5R87wV/QIcJee0BI04LmubqCV581 iWBqlFj5XZYqu6Um3i/Ev/KC5KRi8X4uwB6mQuZI+yKGs3uNMeTETx+vmY/jcGIfHKJH T+0lQA8rQx+88kQDybtdRhm4cYvEP/eiptb45nuTYVS9B4+BGYp6Q31iLfFXobOpLhVk T57g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=RzNeoAFkebhXg0R57+D1/uloGc/nij2JUFUJGLdnqbs=; b=MUqbyNic21l9Mjts+K6aKCXAGrqEGlUt9JtiNlSKCyVOmxNgSyOftOY1Lin/fjEkno VsnVXDNVx4KJq7VYW7JYSoD5+4ix2eNePiVwEv7XW7LshhL7W/6nC8yxq1rsyPy03w1Z WSxKZ48PmG10FsU17sbY2UxuO+CmBKArAYfpzU8WW6M5zYX9bUfsmMMJaAaGT5MCX3u+ puYMoKMTqcpwN58Hj9w6RYDTOJmISv/BAr3hPo8e+XWW+OEo5FuCDZLZmn/W3ezAQ/Zm Hdgy9dvaNUW3bwfOVpOwBVuiAOB1YxRNrN7PWU3eS9tGYGBbOUTK1iFnD9RlWkRd5cL/ FDzA== X-Gm-Message-State: APzg51Adz2Od7nqWso74wPIyb8XR7gwpFs2q+585TsjkgbpA8JY18hlh F3GMvQBh+6HRFmKQ/kHt8tDN35cs X-Received: by 2002:a65:430a:: with SMTP id j10-v6mr3396774pgq.92.1535394236285; Mon, 27 Aug 2018 11:23:56 -0700 (PDT) Date: Mon, 27 Aug 2018 11:23:03 -0700 In-Reply-To: <20180827182315.126345-1-rkir@google.com> Message-Id: <20180827182315.126345-8-rkir@google.com> Mime-Version: 1.0 References: <20180827182315.126345-1-rkir@google.com> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog Subject: [PATCH 08/20] platform: goldfish: pipe: Replace pr_ with dev_ for logging From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov dev_ is preferred if struct device is available. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index e9e3e791c0d4..a61cd444e8ff 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -199,6 +199,9 @@ struct goldfish_pipe_dev { /* Head of a doubly linked list of signalled pipes */ struct goldfish_pipe *first_signalled_pipe; + /* ptr to platform device's device struct */ + struct device *pdev_dev; + /* Some device-specific data */ int irq; int version; @@ -434,7 +437,8 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, * err. */ if (status != PIPE_ERROR_AGAIN) - pr_info_ratelimited("goldfish_pipe: backend error %d on %s\n", + dev_err_ratelimited(pipe->dev->pdev_dev, + "backend error %d on %s\n", status, is_write ? "write" : "read"); break; } @@ -787,6 +791,7 @@ static int goldfish_pipe_device_init(struct platform_device *pdev) return err; } + dev->pdev_dev = &pdev->dev; dev->first_signalled_pipe = NULL; dev->pipes_capacity = INITIAL_PIPES_CAPACITY; dev->pipes = kcalloc(dev->pipes_capacity, sizeof(*dev->pipes), -- 2.19.0.rc0.228.g281dcd1b4d0-goog