From patchwork Sat Feb 17 15:03:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10226233 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 678F9602CB for ; Sat, 17 Feb 2018 15:03:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6474F28B05 for ; Sat, 17 Feb 2018 15:03:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 590BA28C71; Sat, 17 Feb 2018 15:03:50 +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 07B3F28B05 for ; Sat, 17 Feb 2018 15:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751121AbeBQPDr (ORCPT ); Sat, 17 Feb 2018 10:03:47 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53955 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbeBQPDi (ORCPT ); Sat, 17 Feb 2018 10:03:38 -0500 Received: by mail-wm0-f68.google.com with SMTP id t74so7942729wme.3 for ; Sat, 17 Feb 2018 07:03:38 -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=W9+G0WNLFoN1Mdez+BIl+sPC8nbq9gU+1WwmB6lGQejC8pSsof2/QEzs7iF7H8nyKx ZcUVCXL/ENqamRicpwbzo/a99EmhLuyZsT+wCfNCA/jXh0qFUHGs8urP7aQe7ABfR+Hz TmQfAWvdxbvgEpNA491oXKIZMdjYZcWtyWgFtgxZKt3m6QbTdQS+z6uDouLZrKLVOh9T Ccndx/ups5Ehcok3Y/lJpqhXkjJ2wvdI7J8J6hTRM5Ro9+o7iEmFXfDZjRyZSWg2qaBJ 42yQVQDl1wfdAGjyCoCB9fy1x1u7/2ZSY+gZUO+SKVuB3LzEfC3k37rnVCA7sC/5kYK2 /xVA== 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=FWlkyy+xjTHz6wiKE4GoZk0tCz0Q2QAFvuC7ITF0gNs6ophxQDMgGWOxsxNvjE6HfE 4JMvb2fqEBfXk1J5Qj+2AfSQ2XfGHX9FmR94V+LLw+yVAUzaAFKXvVg/qva9t6OQGi7x Y8OZosWXPxR99q0whpshUxsbcGe3YlSo7YjtVDzIr/tUy8YHc2twHOAtjgX1LAfdDiP0 deSiQ214LijygBJQl27WucF37Ngr1fvgtEAcfjqV00J49T4/usVSEaDWjqknCTSMjisF uzvCHPN8NmDK9k3WCRSYiYz4fnJR0oZriuYzopMWsaOAlg0555K80aSd1d/+U4WDzh6e Uw7w== X-Gm-Message-State: APf1xPAFldQ0CelT4TtTjxC9J8fW+DtE+pUi5ZXQZB6vWpyHXvGhoGw0 WiGGAPSiWP1DXsdtCnMMdvE+Cw== X-Google-Smtp-Source: AH8x2256G7AerYzLK77phi5e/diABBAm9rLi6NFPOaYXm9/FEaKh7QVDX253eRYZA6KlSNmfMg8BUQ== X-Received: by 10.28.66.198 with SMTP id k67mr6641907wmi.74.1518879817386; Sat, 17 Feb 2018 07:03:37 -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 f142sm2740628wme.15.2018.02.17.07.03.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Feb 2018 07:03:36 -0800 (PST) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at Subject: [PATCH v2 5/7] [media] staging/cxd2099: remove remainders from old attach way Date: Sat, 17 Feb 2018 16:03:26 +0100 Message-Id: <20180217150328.686-6-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180217150328.686-1-d.scheller.oss@gmail.com> References: <20180217150328.686-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