From cb61a9ffb7f22d9d73d7263bf84142941b336050 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 25 Apr 2003 08:21:35 +0000 Subject: Lots of cosmetic changes in order to sync the CVS with the version that made it into the 2.5.68 kernel. - remove unnecessary c++-style comments - fixed some line breaks and the style function headers are formatted: please don't argue with me about these changes, I don't care how they are formatted. - remove newline breaks between memory allocation and the return value check Some more interesing stuff: - remove ddelay() functions completly, replace with set_current_state() and manual schedule_timeout() calls. - made some init data for the mxb driver static and global (patch already send to lkml) Some crucial changes: - inherit some return values Mr. Alan Cox has changed -- please review --- linux/drivers/media/dvb/frontends/alps_tdmb7.c | 3 ++- linux/drivers/media/dvb/frontends/at76c651.c | 3 ++- linux/drivers/media/dvb/frontends/cx24110.c | 4 +++- linux/drivers/media/dvb/frontends/grundig_29504-491.c | 3 ++- linux/drivers/media/dvb/frontends/stv0299.c | 6 ++++-- linux/drivers/media/dvb/frontends/ves1820.c | 7 +++++-- 6 files changed, 18 insertions(+), 8 deletions(-) (limited to 'linux/drivers/media/dvb/frontends') diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c index df95c64a6..54ac21eac 100644 --- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c +++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c @@ -167,7 +167,8 @@ int cx22700_init (struct dvb_i2c_bus *i2c) cx22700_writereg (i2c, 0x00, 0x02); /* soft reset */ cx22700_writereg (i2c, 0x00, 0x00); - ddelay (HZ/100); + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout (1); for (i=0; i