Commit b95b0c98 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: dvb_frontends: fix kernel-doc macros

Now, the Kernel checks for kernel_doc format issues.
Weird enough, it didn't get any of those troubles. Shssst!

Well, let's fix it, as a preventive way to avoid having
hundreds of new warnings on some next Linux version.

Tested by adding all files under dvb-frontends that have
"/**" on them.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent cba862dc
...@@ -52,7 +52,7 @@ struct i2c_device_addr { ...@@ -52,7 +52,7 @@ struct i2c_device_addr {
}; };
/** /*
* \def IS_I2C_10BIT( addr ) * \def IS_I2C_10BIT( addr )
* \brief Determine if I2C address 'addr' is a 10 bits address or not. * \brief Determine if I2C address 'addr' is a 10 bits address or not.
* \param addr The I2C address. * \param addr The I2C address.
...@@ -67,7 +67,7 @@ struct i2c_device_addr { ...@@ -67,7 +67,7 @@ struct i2c_device_addr {
Exported FUNCTIONS Exported FUNCTIONS
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
/** /*
* \fn drxbsp_i2c_init() * \fn drxbsp_i2c_init()
* \brief Initialize I2C communication module. * \brief Initialize I2C communication module.
* \return drx_status_t Return status. * \return drx_status_t Return status.
...@@ -76,7 +76,7 @@ Exported FUNCTIONS ...@@ -76,7 +76,7 @@ Exported FUNCTIONS
*/ */
drx_status_t drxbsp_i2c_init(void); drx_status_t drxbsp_i2c_init(void);
/** /*
* \fn drxbsp_i2c_term() * \fn drxbsp_i2c_term()
* \brief Terminate I2C communication module. * \brief Terminate I2C communication module.
* \return drx_status_t Return status. * \return drx_status_t Return status.
...@@ -85,7 +85,7 @@ Exported FUNCTIONS ...@@ -85,7 +85,7 @@ Exported FUNCTIONS
*/ */
drx_status_t drxbsp_i2c_term(void); drx_status_t drxbsp_i2c_term(void);
/** /*
* \fn drx_status_t drxbsp_i2c_write_read( struct i2c_device_addr *w_dev_addr, * \fn drx_status_t drxbsp_i2c_write_read( struct i2c_device_addr *w_dev_addr,
* u16 w_count, * u16 w_count,
* u8 *wData, * u8 *wData,
...@@ -121,7 +121,7 @@ Exported FUNCTIONS ...@@ -121,7 +121,7 @@ Exported FUNCTIONS
struct i2c_device_addr *r_dev_addr, struct i2c_device_addr *r_dev_addr,
u16 r_count, u8 *r_data); u16 r_count, u8 *r_data);
/** /*
* \fn drxbsp_i2c_error_text() * \fn drxbsp_i2c_error_text()
* \brief Returns a human readable error. * \brief Returns a human readable error.
* Counter part of numerical drx_i2c_error_g. * Counter part of numerical drx_i2c_error_g.
...@@ -130,7 +130,7 @@ Exported FUNCTIONS ...@@ -130,7 +130,7 @@ Exported FUNCTIONS
*/ */
char *drxbsp_i2c_error_text(void); char *drxbsp_i2c_error_text(void);
/** /*
* \var drx_i2c_error_g; * \var drx_i2c_error_g;
* \brief I2C specific error codes, platform dependent. * \brief I2C specific error codes, platform dependent.
*/ */
......
This diff is collapsed.
...@@ -20,17 +20,18 @@ ...@@ -20,17 +20,18 @@
* @antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1 * @antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1
* means that 1=DVBC, 0 = DVBT. Zero means the opposite. * means that 1=DVBC, 0 = DVBT. Zero means the opposite.
* @mpeg_out_clk_strength: DRXK Mpeg output clock drive strength. * @mpeg_out_clk_strength: DRXK Mpeg output clock drive strength.
* @chunk_size: maximum size for I2C messages
* @microcode_name: Name of the firmware file with the microcode * @microcode_name: Name of the firmware file with the microcode
* @qam_demod_parameter_count: The number of parameters used for the command * @qam_demod_parameter_count: The number of parameters used for the command
* to set the demodulator parameters. All * to set the demodulator parameters. All
* firmwares are using the 2-parameter commmand. * firmwares are using the 2-parameter commmand.
* An exception is the "drxk_a3.mc" firmware, * An exception is the ``drxk_a3.mc`` firmware,
* which uses the 4-parameter command. * which uses the 4-parameter command.
* A value of 0 (default) or lower indicates that * A value of 0 (default) or lower indicates that
* the correct number of parameters will be * the correct number of parameters will be
* automatically detected. * automatically detected.
* *
* On the *_gpio vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is * On the ``*_gpio`` vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
* UIO-3. * UIO-3.
*/ */
struct drxk_config { struct drxk_config {
......
...@@ -33,11 +33,12 @@ ...@@ -33,11 +33,12 @@
/** /**
* Attach a dvb-pll to the supplied frontend structure. * Attach a dvb-pll to the supplied frontend structure.
* *
* @param fe Frontend to attach to. * @fe: Frontend to attach to.
* @param pll_addr i2c address of the PLL (if used). * @pll_addr: i2c address of the PLL (if used).
* @param i2c i2c adapter to use (set to NULL if not used). * @i2c: i2c adapter to use (set to NULL if not used).
* @param pll_desc_id dvb_pll_desc to use. * @pll_desc_id: dvb_pll_desc to use.
* @return Frontend pointer on success, NULL on failure *
* return: Frontend pointer on success, NULL on failure
*/ */
#if IS_REACHABLE(CONFIG_DVB_PLL) #if IS_REACHABLE(CONFIG_DVB_PLL)
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
......
...@@ -38,6 +38,7 @@ enum helene_xtal { ...@@ -38,6 +38,7 @@ enum helene_xtal {
* @set_tuner_priv: Callback function private context * @set_tuner_priv: Callback function private context
* @set_tuner_callback: Callback function that notifies the parent driver * @set_tuner_callback: Callback function that notifies the parent driver
* which tuner is active now * which tuner is active now
* @xtal: Cristal frequency as described by &enum helene_xtal
*/ */
struct helene_config { struct helene_config {
u8 i2c_address; u8 i2c_address;
......
...@@ -19,14 +19,6 @@ ...@@ -19,14 +19,6 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include "dvb_frontend.h" #include "dvb_frontend.h"
/**
* Attach a ix2505v tuner to the supplied frontend structure.
*
* @param fe Frontend to attach to.
* @param config ix2505v_config structure
* @return FE pointer on success, NULL on failure.
*/
struct ix2505v_config { struct ix2505v_config {
u8 tuner_address; u8 tuner_address;
...@@ -45,6 +37,15 @@ struct ix2505v_config { ...@@ -45,6 +37,15 @@ struct ix2505v_config {
}; };
#if IS_REACHABLE(CONFIG_DVB_IX2505V) #if IS_REACHABLE(CONFIG_DVB_IX2505V)
/**
* Attach a ix2505v tuner to the supplied frontend structure.
*
* @fe: Frontend to attach to.
* @config: pointer to &struct ix2505v_config
* @i2c: pointer to &struct i2c_adapter.
*
* return: FE pointer on success, NULL on failure.
*/
extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe, extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
const struct ix2505v_config *config, struct i2c_adapter *i2c); const struct ix2505v_config *config, struct i2c_adapter *i2c);
#else #else
......
...@@ -517,7 +517,7 @@ struct dvb_frontend* l64781_attach(const struct l64781_config* config, ...@@ -517,7 +517,7 @@ struct dvb_frontend* l64781_attach(const struct l64781_config* config,
state->i2c = i2c; state->i2c = i2c;
state->first = 1; state->first = 1;
/** /*
* the L64781 won't show up before we send the reset_and_configure() * the L64781 won't show up before we send the reset_and_configure()
* broadcast. If nothing responds there is no L64781 on the bus... * broadcast. If nothing responds there is no L64781 on the bus...
*/ */
......
...@@ -19,21 +19,21 @@ ...@@ -19,21 +19,21 @@
#include <linux/dvb/frontend.h> #include <linux/dvb/frontend.h>
/* Define old names for backward compatibility */
#define VARIABLE_TS_CLOCK MN88472_TS_CLK_VARIABLE
#define FIXED_TS_CLOCK MN88472_TS_CLK_FIXED
#define SERIAL_TS_MODE MN88472_TS_MODE_SERIAL
#define PARALLEL_TS_MODE MN88472_TS_MODE_PARALLEL
/** /**
* struct mn88472_config - Platform data for the mn88472 driver * struct mn88472_config - Platform data for the mn88472 driver
* @xtal: Clock frequency. * @xtal: Clock frequency.
* @ts_mode: TS mode. * @ts_mode: TS mode.
* @ts_clock: TS clock config. * @ts_clock: TS clock config.
* @i2c_wr_max: Max number of bytes driver writes to I2C at once. * @i2c_wr_max: Max number of bytes driver writes to I2C at once.
* @get_dvb_frontend: Get DVB frontend. * @fe: pointer to a frontend pointer
* @get_dvb_frontend: Get DVB frontend callback.
*/ */
/* Define old names for backward compatibility */
#define VARIABLE_TS_CLOCK MN88472_TS_CLK_VARIABLE
#define FIXED_TS_CLOCK MN88472_TS_CLK_FIXED
#define SERIAL_TS_MODE MN88472_TS_MODE_SERIAL
#define PARALLEL_TS_MODE MN88472_TS_MODE_PARALLEL
struct mn88472_config { struct mn88472_config {
unsigned int xtal; unsigned int xtal;
......
...@@ -33,15 +33,11 @@ ...@@ -33,15 +33,11 @@
* struct rtl2832_sdr_platform_data - Platform data for the rtl2832_sdr driver * struct rtl2832_sdr_platform_data - Platform data for the rtl2832_sdr driver
* @clk: Clock frequency (4000000, 16000000, 25000000, 28800000). * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000).
* @tuner: Used tuner model. * @tuner: Used tuner model.
* @i2c_client: rtl2832 demod driver I2C client. * @regmap: pointer to &struct regmap.
* @bulk_read: rtl2832 driver private I/O interface.
* @bulk_write: rtl2832 driver private I/O interface.
* @update_bits: rtl2832 driver private I/O interface.
* @dvb_frontend: rtl2832 DVB frontend. * @dvb_frontend: rtl2832 DVB frontend.
* @v4l2_subdev: Tuner v4l2 controls. * @v4l2_subdev: Tuner v4l2 controls.
* @dvb_usb_device: DVB USB interface for USB streaming. * @dvb_usb_device: DVB USB interface for USB streaming.
*/ */
struct rtl2832_sdr_platform_data { struct rtl2832_sdr_platform_data {
u32 clk; u32 clk;
/* /*
......
...@@ -29,10 +29,11 @@ ...@@ -29,10 +29,11 @@
/** /**
* Attach a stb6000 tuner to the supplied frontend structure. * Attach a stb6000 tuner to the supplied frontend structure.
* *
* @param fe Frontend to attach to. * @fe: Frontend to attach to.
* @param addr i2c address of the tuner. * @addr: i2c address of the tuner.
* @param i2c i2c adapter to use. * @i2c: i2c adapter to use.
* @return FE pointer on success, NULL on failure. *
* return: FE pointer on success, NULL on failure.
*/ */
#if IS_REACHABLE(CONFIG_DVB_STB6000) #if IS_REACHABLE(CONFIG_DVB_STB6000)
extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr, extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
......
...@@ -368,7 +368,7 @@ static int stv0299_set_voltage(struct dvb_frontend *fe, ...@@ -368,7 +368,7 @@ static int stv0299_set_voltage(struct dvb_frontend *fe,
reg0x08 = stv0299_readreg (state, 0x08); reg0x08 = stv0299_readreg (state, 0x08);
reg0x0c = stv0299_readreg (state, 0x0c); reg0x0c = stv0299_readreg (state, 0x0c);
/** /*
* H/V switching over OP0, OP1 and OP2 are LNB power enable bits * H/V switching over OP0, OP1 and OP2 are LNB power enable bits
*/ */
reg0x0c &= 0x0f; reg0x0c &= 0x0f;
......
...@@ -29,11 +29,12 @@ ...@@ -29,11 +29,12 @@
/** /**
* Attach a tda826x tuner to the supplied frontend structure. * Attach a tda826x tuner to the supplied frontend structure.
* *
* @param fe Frontend to attach to. * @fe: Frontend to attach to.
* @param addr i2c address of the tuner. * @addr: i2c address of the tuner.
* @param i2c i2c adapter to use. * @i2c: i2c adapter to use.
* @param has_loopthrough Set to 1 if the card has a loopthrough RF connector. * @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
* @return FE pointer on success, NULL on failure. *
* return: FE pointer on success, NULL on failure.
*/ */
#if IS_REACHABLE(CONFIG_DVB_TDA826X) #if IS_REACHABLE(CONFIG_DVB_TDA826X)
extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr, extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
......
/** /*
* Driver for Infineon tua6100 PLL. * Driver for Infineon tua6100 PLL.
* *
* (c) 2006 Andrew de Quincey * (c) 2006 Andrew de Quincey
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
* @reg_read: Register read callback. * @reg_read: Register read callback.
* @reg_write: Register write callback. * @reg_write: Register write callback.
*/ */
struct zd1301_demod_platform_data { struct zd1301_demod_platform_data {
void *reg_priv; void *reg_priv;
int (*reg_read)(void *, u16, u8 *); int (*reg_read)(void *, u16, u8 *);
...@@ -41,8 +40,7 @@ struct zd1301_demod_platform_data { ...@@ -41,8 +40,7 @@ struct zd1301_demod_platform_data {
* *
* Return: Pointer to DVB frontend which given platform device owns. * Return: Pointer to DVB frontend which given platform device owns.
*/ */
struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *pdev);
struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *);
/** /**
* zd1301_demod_get_i2c_adapter() - Get pointer to I2C adapter * zd1301_demod_get_i2c_adapter() - Get pointer to I2C adapter
...@@ -50,8 +48,7 @@ struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *); ...@@ -50,8 +48,7 @@ struct dvb_frontend *zd1301_demod_get_dvb_frontend(struct platform_device *);
* *
* Return: Pointer to I2C adapter which given platform device owns. * Return: Pointer to I2C adapter which given platform device owns.
*/ */
struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *pdev);
struct i2c_adapter *zd1301_demod_get_i2c_adapter(struct platform_device *);
#else #else
......
...@@ -20,20 +20,20 @@ ...@@ -20,20 +20,20 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include "dvb_frontend.h" #include "dvb_frontend.h"
/**
* Attach a zl10036 tuner to the supplied frontend structure.
*
* @param fe Frontend to attach to.
* @param config zl10036_config structure
* @return FE pointer on success, NULL on failure.
*/
struct zl10036_config { struct zl10036_config {
u8 tuner_address; u8 tuner_address;
int rf_loop_enable; int rf_loop_enable;
}; };
#if IS_REACHABLE(CONFIG_DVB_ZL10036) #if IS_REACHABLE(CONFIG_DVB_ZL10036)
/**
* Attach a zl10036 tuner to the supplied frontend structure.
*
* @fe: Frontend to attach to.
* @config: zl10036_config structure.
* @i2c: pointer to struct i2c_adapter.
* return: FE pointer on success, NULL on failure.
*/
extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe, extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
const struct zl10036_config *config, struct i2c_adapter *i2c); const struct zl10036_config *config, struct i2c_adapter *i2c);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment