Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1580995 > unrolled thread
| Started by | Stefan Brüns <stefan.bruens@rwth-aachen.de> |
|---|---|
| First post | 2017-02-15 03:00 +0100 |
| Last post | 2017-02-16 10:00 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 3/3] [media] dvbsky: MyGica T230C support Stefan Brüns <stefan.bruens@rwth-aachen.de> - 2017-02-15 03:00 +0100
Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support Antti Palosaari <crope@iki.fi> - 2017-02-15 09:30 +0100
Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support Stefan Bruens <stefan.bruens@rwth-aachen.de> - 2017-02-16 00:40 +0100
Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support Antti Palosaari <crope@iki.fi> - 2017-02-16 09:50 +0100
Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support Antti Palosaari <crope@iki.fi> - 2017-02-16 10:00 +0100
| From | Stefan Brüns <stefan.bruens@rwth-aachen.de> |
|---|---|
| Date | 2017-02-15 03:00 +0100 |
| Subject | [PATCH v2 3/3] [media] dvbsky: MyGica T230C support |
| Message-ID | <taX2W-1eA-19@gated-at.bofh.it> |
Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168
bridge/demodulator combo as the other devices supported by the driver,
but uses the Si2141 tuner.
Several DVB-T (MPEG2) and DVB-T2 (H.265) channels were tested, as well as
the include remote control.
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
---
v2: add support to the dvbsky driver instead of cxusb, correct RC
model
---
drivers/media/dvb-core/dvb-usb-ids.h | 1 +
drivers/media/usb/dvb-usb-v2/dvbsky.c | 91 +++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
index a7a4674ccc40..ce4a3d574dd7 100644
--- a/drivers/media/dvb-core/dvb-usb-ids.h
+++ b/drivers/media/dvb-core/dvb-usb-ids.h
@@ -380,6 +380,7 @@
#define USB_PID_SONY_PLAYTV 0x0003
#define USB_PID_MYGICA_D689 0xd811
#define USB_PID_MYGICA_T230 0xc688
+#define USB_PID_MYGICA_T230C 0xc689
#define USB_PID_ELGATO_EYETV_DIVERSITY 0x0011
#define USB_PID_ELGATO_EYETV_DTT 0x0021
#define USB_PID_ELGATO_EYETV_DTT_2 0x003f
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
index 02dbc6c45423..729496e5a52e 100644
--- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
+++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
@@ -665,6 +665,68 @@ static int dvbsky_t330_attach(struct dvb_usb_adapter *adap)
return ret;
}
+static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap)
+{
+ struct dvbsky_state *state = adap_to_priv(adap);
+ struct dvb_usb_device *d = adap_to_d(adap);
+ int ret = 0;
+ struct i2c_adapter *i2c_adapter;
+ struct i2c_client *client_demod, *client_tuner;
+ struct i2c_board_info info;
+ struct si2168_config si2168_config;
+ struct si2157_config si2157_config;
+
+ /* attach demod */
+ memset(&si2168_config, 0, sizeof(si2168_config));
+ si2168_config.i2c_adapter = &i2c_adapter;
+ si2168_config.fe = &adap->fe[0];
+ si2168_config.ts_mode = SI2168_TS_PARALLEL;
+ si2168_config.ts_clock_inv = 1;
+ memset(&info, 0, sizeof(struct i2c_board_info));
+ strlcpy(info.type, "si2168", I2C_NAME_SIZE);
+ info.addr = 0x64;
+ info.platform_data = &si2168_config;
+
+ request_module(info.type);
+ client_demod = i2c_new_device(&d->i2c_adap, &info);
+ if (client_demod == NULL ||
+ client_demod->dev.driver == NULL)
+ goto fail_demod_device;
+ if (!try_module_get(client_demod->dev.driver->owner))
+ goto fail_demod_module;
+
+ /* attach tuner */
+ memset(&si2157_config, 0, sizeof(si2157_config));
+ si2157_config.fe = adap->fe[0];
+ si2157_config.if_port = 0;
+ memset(&info, 0, sizeof(struct i2c_board_info));
+ strlcpy(info.type, "si2141", I2C_NAME_SIZE);
+ info.addr = 0x60;
+ info.platform_data = &si2157_config;
+
+ request_module("si2157");
+ client_tuner = i2c_new_device(i2c_adapter, &info);
+ if (client_tuner == NULL ||
+ client_tuner->dev.driver == NULL)
+ goto fail_tuner_device;
+ if (!try_module_get(client_tuner->dev.driver->owner))
+ goto fail_tuner_module;
+
+ state->i2c_client_demod = client_demod;
+ state->i2c_client_tuner = client_tuner;
+ return ret;
+fail_tuner_module:
+ i2c_unregister_device(client_tuner);
+fail_tuner_device:
+ module_put(client_demod->dev.driver->owner);
+fail_demod_module:
+ i2c_unregister_device(client_demod);
+fail_demod_device:
+ ret = -ENODEV;
+ return ret;
+}
+
+
static int dvbsky_identify_state(struct dvb_usb_device *d, const char **name)
{
dvbsky_gpio_ctrl(d, 0x04, 1);
@@ -830,6 +892,32 @@ static struct dvb_usb_device_properties dvbsky_t330_props = {
}
};
+static struct dvb_usb_device_properties mygica_t230c_props = {
+ .driver_name = KBUILD_MODNAME,
+ .owner = THIS_MODULE,
+ .adapter_nr = adapter_nr,
+ .size_of_priv = sizeof(struct dvbsky_state),
+
+ .generic_bulk_ctrl_endpoint = 0x01,
+ .generic_bulk_ctrl_endpoint_response = 0x81,
+ .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
+
+ .i2c_algo = &dvbsky_i2c_algo,
+ .frontend_attach = dvbsky_mygica_t230c_attach,
+ .init = dvbsky_init,
+ .get_rc_config = dvbsky_get_rc_config,
+ .streaming_ctrl = dvbsky_streaming_ctrl,
+ .identify_state = dvbsky_identify_state,
+ .exit = dvbsky_exit,
+
+ .num_adapters = 1,
+ .adapter = {
+ {
+ .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
+ }
+ }
+};
+
static const struct usb_device_id dvbsky_id_table[] = {
{ DVB_USB_DEVICE(0x0572, 0x6831,
&dvbsky_s960_props, "DVBSky S960/S860", RC_MAP_DVBSKY) },
@@ -858,6 +946,9 @@ static const struct usb_device_id dvbsky_id_table[] = {
{ DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_S2_R4,
&dvbsky_s960_props, "Terratec Cinergy S2 Rev.4",
RC_MAP_DVBSKY) },
+ { DVB_USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C,
+ &mygica_t230c_props, "Mygica T230C DVB-T/T2/C",
+ RC_MAP_TOTAL_MEDIA_IN_HAND_02) },
{ }
};
MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
--
2.11.0
[toc] | [next] | [standalone]
| From | Antti Palosaari <crope@iki.fi> |
|---|---|
| Date | 2017-02-15 09:30 +0100 |
| Message-ID | <tb38m-5Vs-15@gated-at.bofh.it> |
| In reply to | #1580995 |
On 02/15/2017 03:51 AM, Stefan Brüns wrote:
> Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168
> bridge/demodulator combo as the other devices supported by the driver,
> but uses the Si2141 tuner.
> Several DVB-T (MPEG2) and DVB-T2 (H.265) channels were tested, as well as
> the include remote control.
>
> Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
> ---
> v2: add support to the dvbsky driver instead of cxusb, correct RC
> model
> ---
> drivers/media/dvb-core/dvb-usb-ids.h | 1 +
> drivers/media/usb/dvb-usb-v2/dvbsky.c | 91 +++++++++++++++++++++++++++++++++++
> 2 files changed, 92 insertions(+)
>
> diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h
> index a7a4674ccc40..ce4a3d574dd7 100644
> --- a/drivers/media/dvb-core/dvb-usb-ids.h
> +++ b/drivers/media/dvb-core/dvb-usb-ids.h
> @@ -380,6 +380,7 @@
> #define USB_PID_SONY_PLAYTV 0x0003
> #define USB_PID_MYGICA_D689 0xd811
> #define USB_PID_MYGICA_T230 0xc688
> +#define USB_PID_MYGICA_T230C 0xc689
> #define USB_PID_ELGATO_EYETV_DIVERSITY 0x0011
> #define USB_PID_ELGATO_EYETV_DTT 0x0021
> #define USB_PID_ELGATO_EYETV_DTT_2 0x003f
> diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c
> index 02dbc6c45423..729496e5a52e 100644
> --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
> +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
> @@ -665,6 +665,68 @@ static int dvbsky_t330_attach(struct dvb_usb_adapter *adap)
> return ret;
> }
>
> +static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap)
> +{
> + struct dvbsky_state *state = adap_to_priv(adap);
> + struct dvb_usb_device *d = adap_to_d(adap);
> + int ret = 0;
you could return ret completely as you don't assign its value runtime
> + struct i2c_adapter *i2c_adapter;
> + struct i2c_client *client_demod, *client_tuner;
> + struct i2c_board_info info;
> + struct si2168_config si2168_config;
> + struct si2157_config si2157_config;
> +
> + /* attach demod */
> + memset(&si2168_config, 0, sizeof(si2168_config));
prefer sizeof dst
> + si2168_config.i2c_adapter = &i2c_adapter;
> + si2168_config.fe = &adap->fe[0];
> + si2168_config.ts_mode = SI2168_TS_PARALLEL;
> + si2168_config.ts_clock_inv = 1;
it has boolean type
> + memset(&info, 0, sizeof(struct i2c_board_info));
> + strlcpy(info.type, "si2168", I2C_NAME_SIZE);
I would prefer sizeof dst here too.
> + info.addr = 0x64;
> + info.platform_data = &si2168_config;
> +
> + request_module(info.type);
Use module name here. Even it is same than device id on that case, it is
not always the case.
> + client_demod = i2c_new_device(&d->i2c_adap, &info);
> + if (client_demod == NULL ||
> + client_demod->dev.driver == NULL)
You did not ran checkpatch.pl for that patch? or doesn't it complain
anymore about these?
> + goto fail_demod_device;
> + if (!try_module_get(client_demod->dev.driver->owner))
> + goto fail_demod_module;
> +
> + /* attach tuner */
> + memset(&si2157_config, 0, sizeof(si2157_config));
> + si2157_config.fe = adap->fe[0];
> + si2157_config.if_port = 0;
> + memset(&info, 0, sizeof(struct i2c_board_info));
> + strlcpy(info.type, "si2141", I2C_NAME_SIZE);
> + info.addr = 0x60;
> + info.platform_data = &si2157_config;
> +
> + request_module("si2157");
> + client_tuner = i2c_new_device(i2c_adapter, &info);
> + if (client_tuner == NULL ||
> + client_tuner->dev.driver == NULL)
> + goto fail_tuner_device;
> + if (!try_module_get(client_tuner->dev.driver->owner))
> + goto fail_tuner_module;
> +
> + state->i2c_client_demod = client_demod;
> + state->i2c_client_tuner = client_tuner;
> + return ret;
> +fail_tuner_module:
> + i2c_unregister_device(client_tuner);
> +fail_tuner_device:
> + module_put(client_demod->dev.driver->owner);
> +fail_demod_module:
> + i2c_unregister_device(client_demod);
> +fail_demod_device:
> + ret = -ENODEV;
> + return ret;
> +}
> +
> +
> static int dvbsky_identify_state(struct dvb_usb_device *d, const char **name)
> {
> dvbsky_gpio_ctrl(d, 0x04, 1);
> @@ -830,6 +892,32 @@ static struct dvb_usb_device_properties dvbsky_t330_props = {
> }
> };
>
> +static struct dvb_usb_device_properties mygica_t230c_props = {
> + .driver_name = KBUILD_MODNAME,
> + .owner = THIS_MODULE,
> + .adapter_nr = adapter_nr,
> + .size_of_priv = sizeof(struct dvbsky_state),
> +
> + .generic_bulk_ctrl_endpoint = 0x01,
> + .generic_bulk_ctrl_endpoint_response = 0x81,
> + .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
> +
> + .i2c_algo = &dvbsky_i2c_algo,
> + .frontend_attach = dvbsky_mygica_t230c_attach,
> + .init = dvbsky_init,
> + .get_rc_config = dvbsky_get_rc_config,
> + .streaming_ctrl = dvbsky_streaming_ctrl,
> + .identify_state = dvbsky_identify_state,
> + .exit = dvbsky_exit,
> +
> + .num_adapters = 1,
> + .adapter = {
> + {
> + .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
> + }
> + }
> +};
> +
> static const struct usb_device_id dvbsky_id_table[] = {
> { DVB_USB_DEVICE(0x0572, 0x6831,
> &dvbsky_s960_props, "DVBSky S960/S860", RC_MAP_DVBSKY) },
> @@ -858,6 +946,9 @@ static const struct usb_device_id dvbsky_id_table[] = {
> { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_S2_R4,
> &dvbsky_s960_props, "Terratec Cinergy S2 Rev.4",
> RC_MAP_DVBSKY) },
> + { DVB_USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C,
> + &mygica_t230c_props, "Mygica T230C DVB-T/T2/C",
Drop supported DTV standard names from device name. Also it is MyGica
not Mygica.
> + RC_MAP_TOTAL_MEDIA_IN_HAND_02) },
> { }
> };
> MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
>
Fix those mentioned issues and ran patch against checkpatch.pl to ensure
there is no remaining issues. After that whole patch set should be ok.
regards
Antti
--
http://palosaari.fi/
[toc] | [prev] | [next] | [standalone]
| From | Stefan Bruens <stefan.bruens@rwth-aachen.de> |
|---|---|
| Date | 2017-02-16 00:40 +0100 |
| Message-ID | <tbhl3-6vr-95@gated-at.bofh.it> |
| In reply to | #1581115 |
Hi Antti,
first thanks for for the review. Note the t230c_attach is mostly a copy of the
t330_attach (which is very similar to the t680c_attach), so any of your
comments should probably applied to the other attach functions to have a
common coding style.
On Mittwoch, 15. Februar 2017 10:27:09 CET Antti Palosaari wrote:
> On 02/15/2017 03:51 AM, Stefan Brüns wrote:
[...]
> > diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c
> > b/drivers/media/usb/dvb-usb-v2/dvbsky.c index 02dbc6c45423..729496e5a52e
> > 100644
> > --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
> > +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
> > @@ -665,6 +665,68 @@ static int dvbsky_t330_attach(struct dvb_usb_adapter
> > *adap)>
> > return ret;
> >
> > }
> >
> > +static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap)
> > +{
> > + struct dvbsky_state *state = adap_to_priv(adap);
> > + struct dvb_usb_device *d = adap_to_d(adap);
> > + int ret = 0;
>
> you could return ret completely as you don't assign its value runtime
Sure, so something like:
...
return 0;
fail_foo:
xxx;
fail bar:
yyy;
return -ENODEV;
Some of the other attach functions assign ret = -ENODEV and then goto one of
the fail_foo: labels.
> > + struct i2c_adapter *i2c_adapter;
> > + struct i2c_client *client_demod, *client_tuner;
> > + struct i2c_board_info info;
> > + struct si2168_config si2168_config;
> > + struct si2157_config si2157_config;
> > +
> > + /* attach demod */
> > + memset(&si2168_config, 0, sizeof(si2168_config));
>
> prefer sizeof dst
You mean sizeof(struct si2168_config) ?
> > + si2168_config.i2c_adapter = &i2c_adapter;
> > + si2168_config.fe = &adap->fe[0];
> > + si2168_config.ts_mode = SI2168_TS_PARALLEL;
> > + si2168_config.ts_clock_inv = 1;
>
> it has boolean type
Sure
> > + memset(&info, 0, sizeof(struct i2c_board_info));
> > + strlcpy(info.type, "si2168", I2C_NAME_SIZE);
>
> I would prefer sizeof dst here too.
Most occurences of similar code in media/usb/ use I2C_NAME_SIZE, found two
occurences of "strlcpy(buf, ..., sizeof(buf)), but of course I can change
this.
> > + info.addr = 0x64;
> > + info.platform_data = &si2168_config;
> > +
> > + request_module(info.type);
>
> Use module name here. Even it is same than device id on that case, it is
> not always the case.
While si2157 driver has several supported chip types, si2168 only supports
si2168 (several revisions). Both request_module("foobar") and
request_module(info.type) are common in media/usb/. Change nevertheless?
> > + client_demod = i2c_new_device(&d->i2c_adap, &info);
> > + if (client_demod == NULL ||
> > + client_demod->dev.driver == NULL)
>
> You did not ran checkpatch.pl for that patch? or doesn't it complain
> anymore about these?
Checkpatch did not complain.
[...]
> > @@ -858,6 +946,9 @@ static const struct usb_device_id dvbsky_id_table[] =
> > {
> >
> > { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_S2_R4,
> >
> > &dvbsky_s960_props, "Terratec Cinergy S2 Rev.4",
> > RC_MAP_DVBSKY) },
> >
> > + { DVB_USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C,
> > + &mygica_t230c_props, "Mygica T230C DVB-T/T2/C",
>
> Drop supported DTV standard names from device name. Also it is MyGica
> not Mygica.
The print on the stick says: "MyGica(R) DVB-T2", label on the backside says
"T230C<serial number>". According to the USB descriptors it is a "Geniatech"
"EyeTV Stick". According to the box it is a "MyGica(R)" "Mini DVB-T2 USB Stick
T230C"
Would "MyGica DVB-T2 T230C" be ok?
Kind regards,
Stefan
--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
work: +49 2405 49936-424
[toc] | [prev] | [next] | [standalone]
| From | Antti Palosaari <crope@iki.fi> |
|---|---|
| Date | 2017-02-16 09:50 +0100 |
| Message-ID | <tbpVf-3Kb-11@gated-at.bofh.it> |
| In reply to | #1582002 |
Hello
On 02/16/2017 01:31 AM, Stefan Bruens wrote:
> Hi Antti,
>
> first thanks for for the review. Note the t230c_attach is mostly a copy of the
> t330_attach (which is very similar to the t680c_attach), so any of your
> comments should probably applied to the other attach functions to have a
> common coding style.
Old code could be bad, but imho you could make new code better even it
makes existing diver coding style slightly inconsistent.
>
> On Mittwoch, 15. Februar 2017 10:27:09 CET Antti Palosaari wrote:
>> On 02/15/2017 03:51 AM, Stefan Brüns wrote:
> [...]
>>> diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c
>>> b/drivers/media/usb/dvb-usb-v2/dvbsky.c index 02dbc6c45423..729496e5a52e
>>> 100644
>>> --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c
>>> +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c
>>> @@ -665,6 +665,68 @@ static int dvbsky_t330_attach(struct dvb_usb_adapter
>>> *adap)>
>>> return ret;
>>>
>>> }
>>>
>>> +static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap)
>>> +{
>>> + struct dvbsky_state *state = adap_to_priv(adap);
>>> + struct dvb_usb_device *d = adap_to_d(adap);
>>> + int ret = 0;
>>
>> you could return ret completely as you don't assign its value runtime
>
> Sure, so something like:
>
> ...
> return 0;
> fail_foo:
> xxx;
> fail bar:
> yyy;
> return -ENODEV;
>
> Some of the other attach functions assign ret = -ENODEV and then goto one of
> the fail_foo: labels.
>
>
>>> + struct i2c_adapter *i2c_adapter;
>>> + struct i2c_client *client_demod, *client_tuner;
>>> + struct i2c_board_info info;
>>> + struct si2168_config si2168_config;
>>> + struct si2157_config si2157_config;
>>> +
>>> + /* attach demod */
>>> + memset(&si2168_config, 0, sizeof(si2168_config));
>>
>> prefer sizeof dst
>
> You mean sizeof(struct si2168_config) ?
yeah. See chapter 14 from kernel coding style documentation, it handles
issue slightly.
>
>>> + si2168_config.i2c_adapter = &i2c_adapter;
>>> + si2168_config.fe = &adap->fe[0];
>>> + si2168_config.ts_mode = SI2168_TS_PARALLEL;
>>> + si2168_config.ts_clock_inv = 1;
>>
>> it has boolean type
>
> Sure
>
>>> + memset(&info, 0, sizeof(struct i2c_board_info));
>>> + strlcpy(info.type, "si2168", I2C_NAME_SIZE);
>>
>> I would prefer sizeof dst here too.
>
> Most occurences of similar code in media/usb/ use I2C_NAME_SIZE, found two
> occurences of "strlcpy(buf, ..., sizeof(buf)), but of course I can change
> this.
>
>>> + info.addr = 0x64;
>>> + info.platform_data = &si2168_config;
>>> +
>>> + request_module(info.type);
>>
>> Use module name here. Even it is same than device id on that case, it is
>> not always the case.
>
> While si2157 driver has several supported chip types, si2168 only supports
> si2168 (several revisions). Both request_module("foobar") and
> request_module(info.type) are common in media/usb/. Change nevertheless?
>
>>> + client_demod = i2c_new_device(&d->i2c_adap, &info);
>>> + if (client_demod == NULL ||
>>> + client_demod->dev.driver == NULL)
>>
>> You did not ran checkpatch.pl for that patch? or doesn't it complain
>> anymore about these?
>
> Checkpatch did not complain.
Indentation seem seems to be wrong (see again coding style doc). Also
those might fit into single line. And not sure comparing even to NULL,
at least some point preferred style was !foo, but personally I don't mind.
>
> [...]
>>> @@ -858,6 +946,9 @@ static const struct usb_device_id dvbsky_id_table[] =
>>> {
>>>
>>> { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_S2_R4,
>>>
>>> &dvbsky_s960_props, "Terratec Cinergy S2 Rev.4",
>>> RC_MAP_DVBSKY) },
>>>
>>> + { DVB_USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C,
>>> + &mygica_t230c_props, "Mygica T230C DVB-T/T2/C",
>>
>> Drop supported DTV standard names from device name. Also it is MyGica
>> not Mygica.
>
> The print on the stick says: "MyGica(R) DVB-T2", label on the backside says
> "T230C<serial number>". According to the USB descriptors it is a "Geniatech"
> "EyeTV Stick". According to the box it is a "MyGica(R)" "Mini DVB-T2 USB Stick
> T230C"
>
> Would "MyGica DVB-T2 T230C" be ok?
I would just use device commercial name, which one seems to be most
official. Geniatech is manufacturer, but commercial brand they sell
these is MyGica so at least it is not Geniatech EyeTV Stick which is
something like design name.
regards
Antti
--
http://palosaari.fi/
[toc] | [prev] | [next] | [standalone]
| From | Antti Palosaari <crope@iki.fi> |
|---|---|
| Date | 2017-02-16 10:00 +0100 |
| Message-ID | <tbq4V-3Nz-19@gated-at.bofh.it> |
| In reply to | #1582385 |
On 02/16/2017 10:48 AM, Antti Palosaari wrote: > On 02/16/2017 01:31 AM, Stefan Bruens wrote: >>>> + /* attach demod */ >>>> + memset(&si2168_config, 0, sizeof(si2168_config)); >>> >>> prefer sizeof dst >> >> You mean sizeof(struct si2168_config) ? > > yeah. See chapter 14 from kernel coding style documentation, it handles > issue slightly. argh, I looked wrong! It is *correct*, do not change it. It is just as it should. Sorry about noise. regards Antti -- http://palosaari.fi/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web