From patchwork Thu Feb 8 19:53:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10207925 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 7DD38602D8 for ; Thu, 8 Feb 2018 19:53:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F5AE29601 for ; Thu, 8 Feb 2018 19:53:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6158F29630; Thu, 8 Feb 2018 19:53:38 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11FEC29621 for ; Thu, 8 Feb 2018 19:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752590AbeBHTxe (ORCPT ); Thu, 8 Feb 2018 14:53:34 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34860 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752575AbeBHTx1 (ORCPT ); Thu, 8 Feb 2018 14:53:27 -0500 Received: by mail-wm0-f67.google.com with SMTP id r78so12231115wme.0 for ; Thu, 08 Feb 2018 11:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Epgw8YJ9+alnYgp5z8vHRYxiqzsp2CGTQLgXXB6aGGo=; b=qjoNLuHwJl4Me8fxgLHVLCxX1pfA5ywilGmbWVkcEmzyTsmMV2wqK67+z611lLAOS0 1jVVqIhbfZN/FqX6CvN423Fp7TQEo2uGXYPero2VuMO4gDuYJS4vwaJ4IngOxd5fjQWy 0K+8cYdaLodpQLA91bTzDeR5UR6yI1fXaWpfiIC046DpkSTknfz2Drwq3SNavbSlQTjY h8kV20hg5WwjPBFDP1DMK0/DLdH+GMzxCVKdv8MNNS0vtvqH0CYLjSfMk/scMf0vEAaW i2w2LphNFe4uY5cJnn5/TfKKlF4iutUQbtgLrSDXS++ubLPHQEmzPvLCstlM2t3FgkwP KoqA== 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; bh=Epgw8YJ9+alnYgp5z8vHRYxiqzsp2CGTQLgXXB6aGGo=; b=cypyxD7/WicsO7Gfeq8cc3YAZyPHz8aWZAujsNfv0Z9zHR9RBOcQeBfNNgp+bsTypG AlOdplg1kKVCQrPxSCK0jpHJ5JdZZCTx8weol05W1gK0nxrrplpif/MSR7e/Z1t0u5c1 VQ4sQZ7ro6sBlCAKtimhbKNv67SDQrbUA0/SeaiheaSH1c9SdzetAMe95I0j3rA+1vIx OZO8aBcuk0VI0y1Gtlkg0EgdOBTYQLloAl7vu/O66l5TK5BJ8YeD3JWJHOyQBn/M2EAa 41uxw6WNVoUPQagPyI2OQAyEsxLEw3o0BqYsy7txDj+U9tGPXJNr9JktI3A3DwoGzr07 xYxQ== X-Gm-Message-State: APf1xPDklnfnh327NdylU8DLnJ17G90GJu77awpjJpU265omo1HyBqIa S7YHWDY5wKYQqahhdv9cZOP/Ow== X-Google-Smtp-Source: AH8x225KIruR/JDRtv65lRL814yN1pK/XwaPo9g0GtIAA8nPF1U2O6N9yabJsH9zTXxG3O/mCQQ14g== X-Received: by 10.28.116.16 with SMTP id p16mr150148wmc.21.1518119606475; Thu, 08 Feb 2018 11:53:26 -0800 (PST) Received: from dvbdev.wuest.de (ip-84-118-193-200.unity-media.net. [84.118.193.200]) by smtp.gmail.com with ESMTPSA id 78sm746190wmm.22.2018.02.08.11.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 11:53:25 -0800 (PST) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at Subject: [PATCH 5/7] [media] staging/cxd2099: remove remainders from old attach way Date: Thu, 8 Feb 2018 20:53:16 +0100 Message-Id: <20180208195318.612-6-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180208195318.612-1-d.scheller.oss@gmail.com> References: <20180208195318.612-1-d.scheller.oss@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Scheller As all drivers using the cxd2099 are converted to handle attach/detach the generic I2C client way, the static inline cxd2099_attach isn't required anymore. Thus cleanup cxd2099.h from the remainders, the adr struct member isn't used anymore aswell. Signed-off-by: Daniel Scheller Signed-off-by: Jasmin Jessich --- drivers/staging/media/cxd2099/cxd2099.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/media/cxd2099/cxd2099.h b/drivers/staging/media/cxd2099/cxd2099.h index 679e87512799..8fa45a4c615a 100644 --- a/drivers/staging/media/cxd2099/cxd2099.h +++ b/drivers/staging/media/cxd2099/cxd2099.h @@ -20,7 +20,6 @@ struct cxd2099_cfg { u32 bitrate; - u8 adr; u8 polarity; u8 clock_mode; @@ -30,13 +29,4 @@ struct cxd2099_cfg { struct dvb_ca_en50221 **en; }; -/* TODO: remove when done */ -static inline struct -dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg, void *priv, - struct i2c_adapter *i2c) -{ - dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__); - return NULL; -} - #endif