[media] drx-j: remove external symbols
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 9 Mar 2014 13:33:19 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 10:37:16 +0000 (07:37 -0300)
This driver doesn't export any external symbol, except for
the attach() method.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/drxj.c
drivers/media/dvb-frontends/drx39xyj/drxj.h

index e8c890800904f5edf8aa25d15967a3a6ac805c23..828d0527f38daa591f95a0536b5441478f686f27 100644 (file)
@@ -561,7 +561,7 @@ static int drxdap_fasi_write_reg32(struct i2c_device_addr *dev_addr,
                                       u32 addr,
                                       u32 data, u32 flags);
 
-struct drxj_data drxj_data_g = {
+static struct drxj_data drxj_data_g = {
        false,                  /* has_lna : true if LNA (aka PGA) present      */
        false,                  /* has_oob : true if OOB supported              */
        false,                  /* has_ntsc: true if NTSC supported             */
@@ -810,7 +810,7 @@ struct drxj_data drxj_data_g = {
 * \var drxj_default_addr_g
 * \brief Default I2C address and device identifier.
 */
-struct i2c_device_addr drxj_default_addr_g = {
+static struct i2c_device_addr drxj_default_addr_g = {
        DRXJ_DEF_I2C_ADDR,      /* i2c address */
        DRXJ_DEF_DEMOD_DEV_ID   /* device id */
 };
@@ -819,7 +819,7 @@ struct i2c_device_addr drxj_default_addr_g = {
 * \var drxj_default_comm_attr_g
 * \brief Default common attributes of a drxj demodulator instance.
 */
-struct drx_common_attr drxj_default_comm_attr_g = {
+static struct drx_common_attr drxj_default_comm_attr_g = {
        NULL,                   /* ucode file           */
        true,                   /* ucode verify switch  */
        {0},                    /* version record       */
@@ -890,7 +890,7 @@ struct drx_common_attr drxj_default_comm_attr_g = {
 * \var drxj_default_demod_g
 * \brief Default drxj demodulator instance.
 */
-struct drx_demod_instance drxj_default_demod_g = {
+static struct drx_demod_instance drxj_default_demod_g = {
        &drxj_default_addr_g,   /* i2c address & device id */
        &drxj_default_comm_attr_g,      /* demod common attributes */
        &drxj_data_g            /* demod device specific attributes */
@@ -11291,7 +11291,7 @@ static int drx_ctrl_u_code(struct drx_demod_instance *demod,
 *
 */
 
-int drxj_open(struct drx_demod_instance *demod)
+static int drxj_open(struct drx_demod_instance *demod)
 {
        struct i2c_device_addr *dev_addr = NULL;
        struct drxj_data *ext_attr = NULL;
@@ -11504,7 +11504,7 @@ rw_error:
 * \return Status_t Return status.
 *
 */
-int drxj_close(struct drx_demod_instance *demod)
+static int drxj_close(struct drx_demod_instance *demod)
 {
        struct i2c_device_addr *dev_addr = demod->my_i2c_dev_addr;
        int rc;
index 6d46513b71694bfbf76223760bbbebeaf83252aa..55ad535197d282f33d269a2e655175a519712316 100644 (file)
@@ -647,34 +647,4 @@ DEFINES
        (x == DRX_LOCK_STATE_2) ? "sync lock" : \
        "(Invalid)")
 
-/*-------------------------------------------------------------------------
-ENUM
--------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------
-STRUCTS
--------------------------------------------------------------------------*/
-
-/*-------------------------------------------------------------------------
-Exported FUNCTIONS
--------------------------------------------------------------------------*/
-
-       int drxj_open(struct drx_demod_instance *demod);
-       int drxj_close(struct drx_demod_instance *demod);
-       int drxj_ctrl(struct drx_demod_instance *demod,
-                                    u32 ctrl, void *ctrl_data);
-
-/*-------------------------------------------------------------------------
-Exported GLOBAL VARIABLES
--------------------------------------------------------------------------*/
-       extern struct drx_access_func drx_dap_drxj_funct_g;
-       extern struct drx_demod_func drxj_functions_g;
-       extern struct drxj_data drxj_data_g;
-       extern struct i2c_device_addr drxj_default_addr_g;
-       extern struct drx_common_attr drxj_default_comm_attr_g;
-       extern struct drx_demod_instance drxj_default_demod_g;
-
-/*-------------------------------------------------------------------------
-THE END
--------------------------------------------------------------------------*/
 #endif                         /* __DRXJ_H__ */