The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Brandon Philips <bphilips@suse.de>
Cc: Adrian Bunk <bunk@kernel.org>,
	Matthias Schwarzott <zzam@gentoo.org>,
	v4l-dvb-maintainer@linuxtv.org, linux-kernel@vger.kernel.org
Subject: Re: [v4l-dvb-maintainer] no help text for DVB_TUNER_ITD1000
Date: Thu, 24 Apr 2008 18:34:11 -0300	[thread overview]
Message-ID: <20080424183411.4109f1c8@gaivota> (raw)
In-Reply-To: <20080424210821.GA14416@plankton>

[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]

On Thu, 24 Apr 2008 14:08:21 -0700
Brandon Philips <bphilips@suse.de> wrote:

> On 17:28 Thu 24 Apr 2008, Mauro Carvalho Chehab wrote:
> > On Thu, 24 Apr 2008 23:22:57 +0300 Adrian Bunk <bunk@kernel.org> wrote:
> > > The DVB_TUNER_ITD1000 option introduced by
> > > commit 1881ee89e0fe03ac5bba9045acb3bea1818f9466
> > > (V4L/DVB (7571): mt312: Cleanup buffer variables of read/write functions)
> > > lacks a help text.
> > > 
> > > Please add a help text.
> > 
> > Thanks for pointing.
> > 
> > I just noticed and prepared a patch. I should soon add it to devel branch
> > at -git for people to review. 
> 
> How is adding this Kconfig related to the patch that Matthias posted?
> Once again, some very strange folding is happening as things are moving
> into git.
> 
> http://article.gmane.org/gmane.linux.drivers.dvb/41017/match=mt312+cleanup+buffer+variables+read+write+functions
> 
> vs.
> 
> http://git.kernel.org/?p=linux/kernel/git/mchehab/v4l-dvb.git;a=commitdiff;h=1881ee89e0fe03ac5bba9045acb3bea1818f9466;hp=dbad108bdcb30629c850f5606949510da010a686

Argh!

Matthias, sorry for the mess.

> Could I take a look at the scripts that are used to generate the git
> tree?  This is the second time in the last few weeks that something like
> this has happened.

This error weren't generated by the script. The enclosed patch is the resulting patch
from the scripts. It is the correct one.

I'll investigate what's happened here, and do some git integrity checks. Maybe
stgit did something bad.

Cheers,
Mauro

[-- Attachment #2: v4l_dvb_hg_7571_mt312_cleanup_buffer_variables_of_read_write_functions.patch --]
[-- Type: text/x-patch, Size: 2150 bytes --]

Changeset: 7571
From: Matthias Schwarzott  <zzam@gentoo.org>
Commiter: Mauro Carvalho Chehab <mchehab@infradead.org>
Date: Sat Apr 12 15:04:46 2008 +0000
Subject: mt312: Cleanup buffer variables of read/write functions

Change type of buffer variables from void* to u8* to save some casts.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---

diff -upNr oldtree/drivers/media/dvb/frontends/mt312.c linux/drivers/media/dvb/frontends/mt312.c
--- oldtree/drivers/media/dvb/frontends/mt312.c	2008-04-14 22:20:08.000000000 -0300
+++ linux/drivers/media/dvb/frontends/mt312.c	2008-04-14 22:20:05.000000000 -0300
@@ -58,7 +58,7 @@ static int debug;
 #define MT312_PLL_CLK		10000000UL	/* 10 MHz */
 
 static int mt312_read(struct mt312_state *state, const enum mt312_reg_addr reg,
-		      void *buf, const size_t count)
+		      u8 *buf, const size_t count)
 {
 	int ret;
 	struct i2c_msg msg[2];
@@ -84,7 +84,7 @@ static int mt312_read(struct mt312_state
 		int i;
 		dprintk("R(%d):", reg & 0x7f);
 		for (i = 0; i < count; i++)
-			printk(" %02x", ((const u8 *) buf)[i]);
+			printk(" %02x", buf[i]);
 		printk("\n");
 	}
 
@@ -92,7 +92,7 @@ static int mt312_read(struct mt312_state
 }
 
 static int mt312_write(struct mt312_state *state, const enum mt312_reg_addr reg,
-		       const void *src, const size_t count)
+		       const u8 *src, const size_t count)
 {
 	int ret;
 	u8 buf[count + 1];
@@ -102,7 +102,7 @@ static int mt312_write(struct mt312_stat
 		int i;
 		dprintk("W(%d):", reg & 0x7f);
 		for (i = 0; i < count; i++)
-			printk(" %02x", ((const u8 *) src)[i]);
+			printk(" %02x", src[i]);
 		printk("\n");
 	}
 
@@ -463,7 +463,7 @@ static int mt312_read_snr(struct dvb_fro
 	int ret;
 	u8 buf[2];
 
-	ret = mt312_read(state, M_SNR_H, &buf, sizeof(buf));
+	ret = mt312_read(state, M_SNR_H, buf, sizeof(buf));
 	if (ret < 0)
 		return ret;
 
@@ -478,7 +478,7 @@ static int mt312_read_ucblocks(struct dv
 	int ret;
 	u8 buf[2];
 
-	ret = mt312_read(state, RS_UBC_H, &buf, sizeof(buf));
+	ret = mt312_read(state, RS_UBC_H, buf, sizeof(buf));
 	if (ret < 0)
 		return ret;
 

  reply	other threads:[~2008-04-24 21:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 20:22 no help text for DVB_TUNER_ITD1000 Adrian Bunk
2008-04-24 20:28 ` Mauro Carvalho Chehab
2008-04-24 21:08   ` [v4l-dvb-maintainer] " Brandon Philips
2008-04-24 21:34     ` Mauro Carvalho Chehab [this message]
2008-04-24 23:39     ` Mauro Carvalho Chehab
2008-04-25  0:23       ` Brandon Philips
2008-04-25  2:16         ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080424183411.4109f1c8@gaivota \
    --to=mchehab@infradead.org \
    --cc=bphilips@suse.de \
    --cc=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=v4l-dvb-maintainer@linuxtv.org \
    --cc=zzam@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox