From patchwork Mon Nov 16 17:36:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324448 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503263ils; Mon, 16 Nov 2020 09:37:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTq+eYUglm5fN4tPzcPdHShrcvBBMBY/5qQWqwZHcEQhdm5JESxJouJDq5YKb9rPtkYL+W X-Received: by 2002:a17:90a:e391:: with SMTP id b17mr16984367pjz.209.1605548259691; Mon, 16 Nov 2020 09:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548259; cv=none; d=google.com; s=arc-20160816; b=LK0EI2Fuhe4t685zxgbpejkxb+JeTa7NCcXvhl84ZwPgsPL/C6qbx9bQrMGhtQ1ksW 4PirDIhRxLhI6g3/5n8XaVTrY3nmgJD7LUyBy/vBDt3Fm2T5Xcq4fUdQbnoIKQh5X3LM Qm8NcCDCc9azKQK2LefSqkTdBj3ZdajmQXzwia89ScqNHVCapt8Gg2AZURandx0g7QB3 H+WG1/CkyXZX7qClBiUZxAFOAymzEYcmxyul+kJ6MO0VdciTAA+4zXZ6cRihiEPDkvoJ iq563wg08aK/y7a90x5OwOp+eZhGgvdHIOXfW8+gAPCSLrEU0mb0Fw5xA1dITuRrxsq1 qtsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=G1OvbfYO4TN9Ef09FcjTikmTE+wreKU80LThG1ANuBA=; b=zx7RG28Fd1J2UtBwg2cKNUtgJNIBb2AswqnnB5+aSGZB8Wk1PQDSHPPgVRhCiblxC7 JotUXEWlynK7y1OLmnx+RDTHAS6VFJX/JLxpwZ0k8mTt8wxv57Vp3bm+37j541rcIP+d S0aSaZSymHx6Lp450tzuHMJqWQ3bJMvCIqw7zuHlAcsy6173zuuaN+dR7RgEqwi++XaP ntfOskmcmsqiBwG80YSsbKwrTM9KBr79rbj0SVWUa2jWaVSelKgbsvyTZsJ+Iyro18x+ aOH1vyiBcVg7lWitXJehlg3VdtNsYt1czb6Wn77/PlzQ85Gp1bKdDLTnqWOzGTul+y3d lDHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BnwVbJwR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id i21si16778629pfu.115.2020.11.16.09.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BnwVbJwR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27FED6E04B; Mon, 16 Nov 2020 17:37:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id EB9A86E03B for ; Mon, 16 Nov 2020 17:37:25 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id b6so19643313wrt.4 for ; Mon, 16 Nov 2020 09:37:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y2n5EAuxxaWf0Dm92MV4U7zHBQN4uYE06MkP3Ik/k8Q=; b=BnwVbJwRHIrWiSelgE8VUORGPDGET5j5wYZz3HQcFJYdlMvspKOuspFebmEah8Hjz6 gr31bK0POXAE4z3LwjHafVrjp8+fYHxVWnm2p9z34efZ830IGvN9jlKtUbJcGYdha7En xZXaENA81gYhIFOEhMERcLgH3znBEyebE00yYVb1zJ6NnnNzRoWmik/7PBmcPfB1TaGn 8j+nSptwK8yJ904NRY4L9MeSNKIm0mEVS8vfrkxgDP6BDDczdt9JbFF4myk3nh9Rh79S H+8NNQZYtlq81stY+zFgFh3rmhvPAnYDZ93qgC1jbZDxICbEWjNQbSlwg0FLj0ak9QwW iK5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y2n5EAuxxaWf0Dm92MV4U7zHBQN4uYE06MkP3Ik/k8Q=; b=YpQsz8QR89mbF1f5cD2Hpr80ru9mNWLqXVhGVBDqv5MePn01XRO3UlrWkYKVJte5iJ lWAgZWWGkiwAFSX5Tu99sfT1T6L4Vq2lTuInn/8i8ZR7qIx6S2t8HR9PXBdVsDdZHro5 Pswxhu32p2XZdtAAETCcVCySTMFzrWOGq7PNWnkMUZJL2y+hMLxL/I4o0mAAxFFsTm8a O5m4UJIktaOQY/NXUoJzGg0Xq1ALbJDfPcwx9W2rB+844MHf19kbe8u0BAbnOJGINjqO kCMhWR9JsnwO2bMdjX0Bpbyf3l7QYThd1VJeXUrvSTicYqg+jZtgDRr08WkPJcO1VZis 5LSg== X-Gm-Message-State: AOAM533zvmdrSjfcUDnhD3HbJGaPTcKOd8B01YfNIP3Unb1KZZFjXyu0 baCrnUK6z99w4S0fgnDYlI61zFyE3D5jFwYJ X-Received: by 2002:a5d:6892:: with SMTP id h18mr20526445wru.49.1605548244607; Mon, 16 Nov 2020 09:37:24 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/43] drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header Date: Mon, 16 Nov 2020 17:36:32 +0000 Message-Id: <20201116173700.1830487-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173700.1830487-1-lee.jones@linaro.org> References: <20201116173700.1830487-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/atombios_i2c.c:100:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_xfer’ [-Wmissing-prototypes] 100 | int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/atombios_i2c.c:150:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_func’ [-Wmissing-prototypes] 150 | u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap) | ^~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/atom.h | 7 +++++++ drivers/gpu/drm/radeon/radeon_i2c.c | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h index 1bf06c91cd959..5de0563b63d2e 100644 --- a/drivers/gpu/drm/radeon/atom.h +++ b/drivers/gpu/drm/radeon/atom.h @@ -154,6 +154,13 @@ bool atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size, bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev, uint8_t *crev); int atom_allocate_fb_scratch(struct atom_context *ctx); + +struct i2c_msg; +struct i2c_adapter; +int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, + struct i2c_msg *msgs, int num); +u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); + #include "atom-types.h" #include "atombios.h" #include "ObjectID.h" diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index aa61b3cb4049c..e543d993f73ee 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -34,10 +34,6 @@ #include "radeon.h" #include "atom.h" -extern int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, - struct i2c_msg *msgs, int num); -extern u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); - bool radeon_ddc_probe(struct radeon_connector *radeon_connector, bool use_aux) { u8 out = 0x0;