Received: by 10.223.176.46 with SMTP id f43csp1123383wra; Fri, 26 Jan 2018 12:14:55 -0800 (PST) X-Google-Smtp-Source: AH8x226vYQDJjMWWrKYhjFbnaqhvQYisI5Q1fjEUn8R3AHqw9G1aqgbiYjRnwyFIHQjbI0rt+XfY X-Received: by 2002:a17:902:57ce:: with SMTP id g14-v6mr15068610plj.348.1516997694991; Fri, 26 Jan 2018 12:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516997694; cv=none; d=google.com; s=arc-20160816; b=ZtKWhFl6PAjhLOOIzFMq1QtykG1d54fWxru4LA4u72nytGZ7JFcEEKTZ7NZS73K6ye kI9by3/w6qsl0+qtI7GVCD1gg01UgI14Zjo3L1kNT8UBLBHWGAd1mi8jgQrL1+8l8H0b aBlkCsmoDxuBdri4qwhzFB6pQuvlSKJxC9YvXkOkv5KQaHbRcGUzmcJ3WI8GbSGCscEJ pxH7JXF2SmhUVbvn1wYMHN7C+5da/iJT6+HDI/vnxE4izUo84OBFXFbj8NKfsGjjxShr 1EaYjUTy3/RjzNwxHYYFqB3hQmgVcIgkARDFRycpknzHwKTchZeY/Bu3YmKoiYa9dss6 NSpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=QKl+ArWSKe4u1biX9g6GBvzPs8jlk15f/4Pyu0yDdLA=; b=p5t6mhODbwv07ZnXEJvZ0+ln38RCCWWzNyakzyA/hWVeuuHWhlOo4lOAsLAwOpuD4v AVwFVY6YTMeqx5ocV0keUH+MEgWd2fwU+O1E7/HCUyUOlXQTw3LZwgrSg6+CTUtDj1kM drfayLpdPoTR47yJP0fqXmNJ0ufMdxwKiVTPZgot2CuSg+SReGsDESTYTwjI/svwWRvX XnDA8fMqjH7dQd0Do+2MVZK3V2nThFOcKuMFHNbNZ9abgvm/Zq8mBGC/yN6VSFIJG403 uyYsRqS6dyCKDPMkO1JTU9WIPnIkcHozZEI7SE/wPf45PTRwHmeIah6PBG+JZhRxAm8O P6Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=WZMzLn2n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si4152264pld.281.2018.01.26.12.14.40; Fri, 26 Jan 2018 12:14:54 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=WZMzLn2n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752353AbeAZUON (ORCPT + 99 others); Fri, 26 Jan 2018 15:14:13 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41046 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbeAZUOL (ORCPT ); Fri, 26 Jan 2018 15:14:11 -0500 Received: by mail-wr0-f196.google.com with SMTP id v15so1511790wrb.8 for ; Fri, 26 Jan 2018 12:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=QKl+ArWSKe4u1biX9g6GBvzPs8jlk15f/4Pyu0yDdLA=; b=WZMzLn2nXoHTWVZoRoynSbkyoxet38BwosjNf4ohp8ptDmwnYCWuLVPufEjgSfvctG hn2/AG34YEt2p1eGSynTWNyy18SAJRbeDYxFAwQ7Pi4Mq7izmBFgHdykJXvmi74rg590 D09XcNvAsLs0enHmGByUSc52+4PyoGsTcT0dZc8Q4doDgt5vryBQ04S5M76YV1BWgWbz J4zzJzQ5Z5my1nQb/VRPAg6Wbol8frYQpge6AB3gyyJXxXyma9kEqWpdf797Ia+Nd6MT 8G4f3OdcxOvM744uyEv3i8lb+NS53f809OhtmFbBpeSboLh2K94Xz2ShrSdcAw+BjNHr +fqg== 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; bh=QKl+ArWSKe4u1biX9g6GBvzPs8jlk15f/4Pyu0yDdLA=; b=NE5OsGLeditSbpJzT6I4Y4WKAwmkJthydhcKt73enS/LXSx47CjHtYYP6kb1EWDX61 QVyxPoVC5C5DdnoB36VZTSLTZoy5PnqeBF889SsdXRn6F4oMUmWAS2skTrAy6xD+hbta UFeJI0mND5j7CVjTTNGUUjSbA0YB/D/xLxx96VyZikFD4OCwO3VuoFeauccoTHTG9uIj CVDEWhhaD2BaFHA6p5r4oZwB2IfHCEvFYYHT6GS7eXTIKhtODwNRjJuJGTW7cYIGrjA3 Ls8/u2C9AmhLz6GcG8FryGt7vK5kdiSkQVtPY7LuCvauNWsvVqLEe6cYv+sSheIV5gyp AnCA== X-Gm-Message-State: AKwxytc6ROOZECy0o0qq3G9NqSMLrDT+WWJ86SyZZofAxTOUsatB3KZy tI29k50U+6NuVRj+6LGpxe5zhg== X-Received: by 10.223.200.140 with SMTP id k12mr13492906wrh.211.1516997650432; Fri, 26 Jan 2018 12:14:10 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id q186sm5437289wmb.33.2018.01.26.12.14.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 12:14:09 -0800 (PST) From: Corentin Labbe To: mchehab@kernel.org Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Corentin Labbe Subject: [PATCH] media: drx-j remove bsp_i2c.h Date: Fri, 26 Jan 2018 20:14:05 +0000 Message-Id: <1516997645-13813-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bsp_i2c.h is unused since commit ffe7c4f92183 ("[media] drx-j: Get rid of drx39xyj/bsp_tuner.h") Remove it from tree. Signed-off-by: Corentin Labbe --- drivers/media/dvb-frontends/drx39xyj/bsp_i2c.h | 139 ------------------------- 1 file changed, 139 deletions(-) delete mode 100644 drivers/media/dvb-frontends/drx39xyj/bsp_i2c.h diff --git a/drivers/media/dvb-frontends/drx39xyj/bsp_i2c.h b/drivers/media/dvb-frontends/drx39xyj/bsp_i2c.h deleted file mode 100644 index 2b3af247a1f1..000000000000 --- a/drivers/media/dvb-frontends/drx39xyj/bsp_i2c.h +++ /dev/null @@ -1,139 +0,0 @@ -/* - I2C API, implementation depends on board specifics - - Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - * Neither the name of Trident Microsystems nor Hauppauge Computer Works - nor the names of its contributors may be used to endorse or promote - products derived from this software without specific prior written - permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - - This module encapsulates I2C access.In some applications several devices - share one I2C bus. If these devices have the same I2C address some kind - off "switch" must be implemented to ensure error free communication with - one device. In case such a "switch" is used, the device ID can be used - to implement control over this "switch". -*/ - -#ifndef __BSPI2C_H__ -#define __BSPI2C_H__ - -#include "bsp_types.h" - -/* - * This structure contains the I2C address, the device ID and a user_data pointer. - * The user_data pointer can be used for application specific purposes. - */ -struct i2c_device_addr { - u16 i2c_addr; /* The I2C address of the device. */ - u16 i2c_dev_id; /* The device identifier. */ - void *user_data; /* User data pointer */ -}; - - -/* -* \def IS_I2C_10BIT( addr ) -* \brief Determine if I2C address 'addr' is a 10 bits address or not. -* \param addr The I2C address. -* \return int. -* \retval 0 if address is not a 10 bits I2C address. -* \retval 1 if address is a 10 bits I2C address. -*/ -#define IS_I2C_10BIT(addr) \ - (((addr) & 0xF8) == 0xF0) - -/*------------------------------------------------------------------------------ -Exported FUNCTIONS -------------------------------------------------------------------------------*/ - -/* -* \fn drxbsp_i2c_init() -* \brief Initialize I2C communication module. -* \return drx_status_t Return status. -* \retval 0 Initialization successful. -* \retval -EIO Initialization failed. -*/ - drx_status_t drxbsp_i2c_init(void); - -/* -* \fn drxbsp_i2c_term() -* \brief Terminate I2C communication module. -* \return drx_status_t Return status. -* \retval 0 Termination successful. -* \retval -EIO Termination failed. -*/ - drx_status_t drxbsp_i2c_term(void); - -/* -* \fn drx_status_t drxbsp_i2c_write_read( struct i2c_device_addr *w_dev_addr, -* u16 w_count, -* u8 *wData, -* struct i2c_device_addr *r_dev_addr, -* u16 r_count, -* u8 *r_data) -* \brief Read and/or write count bytes from I2C bus, store them in data[]. -* \param w_dev_addr The device i2c address and the device ID to write to -* \param w_count The number of bytes to write -* \param wData The array to write the data to -* \param r_dev_addr The device i2c address and the device ID to read from -* \param r_count The number of bytes to read -* \param r_data The array to read the data from -* \return drx_status_t Return status. -* \retval 0 Succes. -* \retval -EIO Failure. -* \retval -EINVAL Parameter 'wcount' is not zero but parameter -* 'wdata' contains NULL. -* Idem for 'rcount' and 'rdata'. -* Both w_dev_addr and r_dev_addr are NULL. -* -* This function must implement an atomic write and/or read action on the I2C bus -* No other process may use the I2C bus when this function is executing. -* The critical section of this function runs from and including the I2C -* write, up to and including the I2C read action. -* -* The device ID can be useful if several devices share an I2C address. -* It can be used to control a "switch" on the I2C bus to the correct device. -*/ - drx_status_t drxbsp_i2c_write_read(struct i2c_device_addr *w_dev_addr, - u16 w_count, - u8 *w_data, - struct i2c_device_addr *r_dev_addr, - u16 r_count, u8 *r_data); - -/* -* \fn drxbsp_i2c_error_text() -* \brief Returns a human readable error. -* Counter part of numerical drx_i2c_error_g. -* -* \return char* Pointer to human readable error text. -*/ - char *drxbsp_i2c_error_text(void); - -/* -* \var drx_i2c_error_g; -* \brief I2C specific error codes, platform dependent. -*/ - extern int drx_i2c_error_g; - -#endif /* __BSPI2C_H__ */ -- 2.13.6