Skip to contentSkip to conversation

stv{0910,6111} cosmetics

PATCH New Daniel Scheller 1 participant 3 messages Aug 20, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover stv{0910,6111} cosmetics

From: Daniel Scheller <[email protected]>

Two cosmetics for the two new demod/tuner drivers. The stv0910 patch is a remainder/leftover from the cleanup and cosmetic series, originally submitted by Colin King. The second one fixes a warning I noticed in Hans' daily build log.

@Mauro: Together with [1] and [2], everything that cumulated over time is done now, with the only thing remaining being the IOCTL stuff which we need to discuss and finalise.

[1] https://patchwork.linuxtv.org/patch/43202/
[2] https://patchwork.linuxtv.org/patch/43350/

Daniel Scheller (2):
[media] dvb-frontends/stv0910: declare global list_head stvlist static [media] dvb-frontends/stv6111.c: return NULL instead of plain integer

 drivers/media/dvb-frontends/stv0910.c | 2 +-
 drivers/media/dvb-frontends/stv6111.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/2 dvb-frontends/stv0910: declare global list_head stvlist static

From: Daniel Scheller <[email protected]>

Cleans up smatch warning:
symbol 'stvlist' was not declared. Should it be static?

Patch originally submitted by Colin Ian King <[email protected]>, remainder after the merge of all other stv0910 fixes.

---
 drivers/media/dvb-frontends/stv0910.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/dvb-frontends/stv0910.c +1 -1
index d0a8ed36b899..d1ae9553f74c 100644
@@ -34,7 +34,7 @@
 #define BER_SRC_S    0x20
 #define BER_SRC_S2   0x20
 
-LIST_HEAD(stvlist);
+static LIST_HEAD(stvlist);
 
 enum receive_mode { RCVMODE_NONE, RCVMODE_DVBS, RCVMODE_DVBS2, RCVMODE_AUTO };
 
Signature · 1 line
2.13.0
#2 lore raw

PATCH 2/2 dvb-frontends/stv6111.c: return NULL instead of plain integer

In reply to Daniel Scheller

From: Daniel Scheller <[email protected]>

Fixes:
stv6111.c:665:24: warning: Using plain integer as NULL pointer

---
 drivers/media/dvb-frontends/stv6111.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/dvb-frontends/stv6111.c +1 -1
index 9a59fa318207..e3e90070e293 100644
@@ -669,7 +669,7 @@ struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
 		fe->ops.i2c_gate_ctrl(fe, 0);
 	if (stat < 0) {
 		kfree(state);
-		return 0;
+		return NULL;
 	}
 	fe->tuner_priv = state;
 	return fe;
Signature · 1 line
2.13.0