GitHub/MotorolaMobilityLLC/kernel-slsi.git
12 years ago[media] radio-typhoon: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 08:17:32 +0000 (05:17 -0300)]
[media] radio-typhoon: Convert to radio-isa

Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-trust: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 08:16:29 +0000 (05:16 -0300)]
[media] radio-trust: Convert to radio-isa

Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-terratec: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 08:15:09 +0000 (05:15 -0300)]
[media] radio-terratec: Convert to radio-isa

Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-rtrack2: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 08:24:08 +0000 (05:24 -0300)]
[media] radio-rtrack2: Convert to radio-isa

Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-gemtek: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 08:00:26 +0000 (05:00 -0300)]
[media] radio-gemtek: Convert to radio-isa

Tested with actual hardware (up to two cards) and the Keene USB FM Transmitter.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-aztech: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 07:58:15 +0000 (04:58 -0300)]
[media] radio-aztech: Convert to radio-isa

Tested with actual hardware and the Keene USB FM Transmitter.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-aimslab: Convert to radio-isa
Hans Verkuil [Mon, 16 Jan 2012 07:55:10 +0000 (04:55 -0300)]
[media] radio-aimslab: Convert to radio-isa

Tested with actual hardware and the Keene USB FM Transmitter.

Improved the volume handling delays through trial and error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-isa: add framework for ISA radio drivers
Hans Verkuil [Fri, 3 Feb 2012 11:28:56 +0000 (08:28 -0300)]
[media] radio-isa: add framework for ISA radio drivers

We have quite a few ISA radio drivers, which are all very similar.

This framework makes it possible to reduce the code size of those drivers
and makes it much easier to keep them up to date with the latest V4L2 API
developments.

Drivers rewritten to use this framework fully pass the v4l2-compliance tests
and are properly using the ISA bus (so they can be found under /sys/bus/isa).

It is now also possible to support multiple cards using the same driver
(tested with two radio-gemtek cards).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] fintek-cir: add support for newer chip version
Mauro Carvalho Chehab [Tue, 14 Feb 2012 18:51:56 +0000 (16:51 -0200)]
[media] fintek-cir: add support for newer chip version

Acked-by: Jarod Wilson <jarod@redhat.com>
Reviewed-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] it913x v1.25 support different for remotes
Malcolm Priestley [Wed, 1 Feb 2012 21:27:42 +0000 (18:27 -0300)]
[media] it913x v1.25 support different for remotes

Support for different types of remote.

ITE remotes share common device IDs with differently assigned keys.

Two versions of remote maps have been created there are likely to be more.
v1 for all other IDs
v2 for USB_PID_ITETECH_IT9135_9005.

This patch also separates the configuration parts from it913x_identify_state function.

TODO
remotes for HID interfaces.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] hid-core: ignore the Keene FM transmitter
Hans Verkuil [Fri, 13 Jan 2012 14:15:22 +0000 (11:15 -0300)]
[media] hid-core: ignore the Keene FM transmitter

The Keene FM transmitter USB device has the same USB ID as
the Logitech AudioHub Speaker, but it should ignore the hid.
Check if the name is that of the Keene device.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] radio-keene: add a driver for the Keene FM Transmitter
Hans Verkuil [Thu, 2 Feb 2012 11:44:40 +0000 (08:44 -0300)]
[media] radio-keene: add a driver for the Keene FM Transmitter

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] vivi: use v4l2_ctrl_subscribe_event
Hans Verkuil [Fri, 27 Jan 2012 19:21:10 +0000 (16:21 -0300)]
[media] vivi: use v4l2_ctrl_subscribe_event

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l2-ctrls: add helper functions for control events
Hans Verkuil [Fri, 27 Jan 2012 19:18:42 +0000 (16:18 -0300)]
[media] v4l2-ctrls: add helper functions for control events

Many drivers just support control events, and most radio drivers just need
to poll for control events. Add some functions to simplify those jobs.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l2-subdev: add start/end messages for log_status
Hans Verkuil [Thu, 2 Feb 2012 11:26:20 +0000 (08:26 -0300)]
[media] v4l2-subdev: add start/end messages for log_status

Add the start and end messages for log_status when called from a
subdev device node.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l2: standardize log start/end message
Hans Verkuil [Thu, 2 Feb 2012 11:20:53 +0000 (08:20 -0300)]
[media] v4l2: standardize log start/end message

For drivers that properly use the v4l2 framework (i.e. set v4l2_dev in the
video_device struct), the start and end messages of VIDIOC_LOG_STATUS are
now generated automatically. People tended to forget these, but the v4l2-ctl
tool scans for these messages, and it also makes it easier to read the status
output in the kernel log.

The cx18, ivtv and bttv drivers were changed since they no longer need to
log these start/end messages.

In saa7164 two empty log_status functions were removed.

Also added a helper function to v4l2-ctrl.c that can be used as the
vidioc_log_status callback if all you need to do is to log the current control
values. This is now used by pwc and vivi.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Steven Toth <stoth@kernellabs.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] IT913X Version 1 and Version 2 keymaps
Malcolm Priestley [Wed, 1 Feb 2012 21:29:44 +0000 (18:29 -0300)]
[media] IT913X Version 1 and Version 2 keymaps

IT913X V1 V2 keymaps

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ivtv: add IVTV_IOC_PASSTHROUGH_MODE
Hans Verkuil [Thu, 15 Dec 2011 13:40:23 +0000 (10:40 -0300)]
[media] ivtv: add IVTV_IOC_PASSTHROUGH_MODE

With this private ioctl it is possible to use the ivtv decoder without
requiring the dvb/video.h and dvb/audio.h headers.

Eventually support for those DVB APIs will be dropped from ivtv.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx18/ddbridge: remove unused headers
Hans Verkuil [Thu, 15 Dec 2011 13:33:26 +0000 (10:33 -0300)]
[media] cx18/ddbridge: remove unused headers

The cx18 and ddbridge drivers include linux/dvb/audio.h and video.h
without using them.

Remove those includes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ivtv: implement new decoder controls
Hans Verkuil [Thu, 15 Dec 2011 13:32:53 +0000 (10:32 -0300)]
[media] ivtv: implement new decoder controls

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] Document decoder controls
Hans Verkuil [Thu, 15 Dec 2011 13:52:57 +0000 (10:52 -0300)]
[media] Document decoder controls

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l2-ctrls: add new controls for MPEG decoder devices
Hans Verkuil [Thu, 15 Dec 2011 13:46:16 +0000 (10:46 -0300)]
[media] v4l2-ctrls: add new controls for MPEG decoder devices

As discussed during the 2011 V4L-DVB workshop we want to create a proper V4L2
decoder API that replaces the DVBv5 API that has been used until now.

This adds the four controls necessary to be able to switch ivtv over to this
new API.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ivtv: implement new decoder command ioctls
Hans Verkuil [Thu, 24 Nov 2011 12:58:53 +0000 (09:58 -0300)]
[media] ivtv: implement new decoder command ioctls

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l spec: document VIDIOC_(TRY_)DECODER_CMD
Hans Verkuil [Thu, 24 Nov 2011 12:55:53 +0000 (09:55 -0300)]
[media] v4l spec: document VIDIOC_(TRY_)DECODER_CMD

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] v4l2: add VIDIOC_(TRY_)DECODER_CMD
Hans Verkuil [Thu, 24 Nov 2011 12:53:43 +0000 (09:53 -0300)]
[media] v4l2: add VIDIOC_(TRY_)DECODER_CMD

As discussed during the 2011 V4L-DVB workshop, the API in dvb/video.h should
be replaced by a proper V4L2 API. This patch turns the VIDEO_(TRY_)DECODER_CMD
ioctls into proper V4L2 ioctls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] max2165: trival fix for some -Wuninitialized warning
Danny Kukawka [Mon, 30 Jan 2012 21:00:06 +0000 (18:00 -0300)]
[media] max2165: trival fix for some -Wuninitialized warning

Fix for some -Wuninitialized compiler warnings.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: Fix mem leak in easycap_usb_probe()
Jesper Juhl [Sun, 29 Jan 2012 19:55:28 +0000 (16:55 -0300)]
[media] easycap: Fix mem leak in easycap_usb_probe()

If allocating 'pdata_urb' fails, the function will return -ENOMEM
without freeing the memory allocated, just a few lines above, for
'purb' and will leak that memory when 'purb' goes out of scope.

This patch resolves the leak by freeing the allocated storage with
usb_free_urb() before the return.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] [trivial] s5p: Fix typo in mixer_drv.c and hdmi_drv.c
Masanari Iida [Sun, 29 Jan 2012 11:50:53 +0000 (08:50 -0300)]
[media] [trivial] s5p: Fix typo in mixer_drv.c and hdmi_drv.c

Correct typo "sucessful" to "successful" in
drivers/media/video/s5p-tv/mixer_drv.c
drivers/media/video/s5p-tv/hdmi_drv.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] tm6000: Don't use pointer after freeing it in tm6000_ir_fini()
Jesper Juhl [Sun, 29 Jan 2012 00:41:52 +0000 (21:41 -0300)]
[media] tm6000: Don't use pointer after freeing it in tm6000_ir_fini()

In tm6000_ir_fini() there seems to be a problem.
rc_unregister_device(ir->rc); calls rc_free_device() on the pointer it is
given, which frees it.

Subsequently the function does:

  if (!ir->polling)
    __tm6000_ir_int_stop(ir->rc);

and __tm6000_ir_int_stop() dereferences the pointer it is given, which
has already been freed.

and it also does:

  tm6000_ir_stop(ir->rc);

which also dereferences the (already freed) pointer.

So, it seems that the call to rc_unregister_device() should be move
below the calls to __tm6000_ir_int_stop() and tm6000_ir_stop(), so
those don't operate on a already freed pointer.

But, I must admit that I don't know this code *at all*, so someone who
knows the code should take a careful look before applying this
patch. It is based purely on inspection of facts of what is beeing
freed where and not at all on understanding what the code does or why.
I don't even have a means to test it, so beyond testing that the
change compiles it has seen no testing what-so-ever.

Anyway, here's a proposed patch.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] it913x ver 1.24 Make 0x60 default on version 2 devices
Malcolm Priestley [Sat, 28 Jan 2012 21:02:34 +0000 (18:02 -0300)]
[media] it913x ver 1.24 Make 0x60 default on version 2 devices

Some version 2 devices have different tuner IDs. ID 0x38
appears to have weak signal strength.

Apply default 0x60 to unknown IDs.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] mt2063: increase frequency_max to tune channel 69
Jose Alberto Reguero [Fri, 27 Jan 2012 21:43:28 +0000 (18:43 -0300)]
[media] mt2063: increase frequency_max to tune channel 69

Increase mt2063 frequency_max to tune to channel 69(858Mhz).

Jose Alberto

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk: Fix get_tune_settings for DVB-T
Jose Alberto Reguero [Fri, 27 Jan 2012 21:34:49 +0000 (18:34 -0300)]
[media] drxk: Fix get_tune_settings for DVB-T

DVB-T also use step_size=0.

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] [trivial] ov6650: Fix typo
Masanari Iida [Fri, 27 Jan 2012 14:04:51 +0000 (11:04 -0300)]
[media] [trivial] ov6650: Fix typo

Correct spelling "unspported" to "unsupported" in
drivers/media/video/ov6650.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] [trivial] lmedm04: Fix typo
Masanari Iida [Fri, 27 Jan 2012 12:47:04 +0000 (09:47 -0300)]
[media] [trivial] lmedm04: Fix typo

Correct spelling "reseting" to "resetting" in
drivers/media/dvb/dvb-usb/lmedm04.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] davinci: vpif: remove machine specific header file includes
Manjunath Hadli [Fri, 23 Dec 2011 06:28:44 +0000 (03:28 -0300)]
[media] davinci: vpif: remove machine specific header file includes

remove unnecessary inclusion of machine specific header files mach/dm646x.h,
mach/hardware.h from vpif.h  and aslo mach/dm646x.h from vpif_display.c
driver which comes in the way of platform code consolidation.
Add linux/i2c.h header file in vpif_types.h which is required for
building.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: LMML <linux-media@vger.kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: add another Terratec H7 usb id
Jose Alberto Reguero [Thu, 26 Jan 2012 23:02:52 +0000 (20:02 -0300)]
[media] az6007: add another Terratec H7 usb id

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] vivi: don't set V4L2_CAP_DEVICE_CAPS for the device_caps field
Hans Verkuil [Tue, 24 Jan 2012 08:24:36 +0000 (05:24 -0300)]
[media] vivi: don't set V4L2_CAP_DEVICE_CAPS for the device_caps field

V4L2_CAP_DEVICE_CAPS is valid for the capabilities field only as per
the spec.

Found with v4l2-compliance.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk_hard: does not need to include linux/version.h
Jesper Juhl [Mon, 23 Jan 2012 21:45:58 +0000 (18:45 -0300)]
[media] drxk_hard: does not need to include linux/version.h

This patch removes the unneeded include.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] anysee: repeat failed USB control messages
Antti Palosaari [Sat, 21 Jan 2012 14:19:29 +0000 (11:19 -0300)]
[media] anysee: repeat failed USB control messages

Control message load increased heavily after CI/CAM support due
to dvb_ca_en50221. It looks like CI/CAM drops to non-working
state easily after error is returned to its callbacks. Due to
that, add some logic to avoid errors repeating failed messages.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoMerge branch 'v4l_for_linus' into staging/for_v3.4
Mauro Carvalho Chehab [Mon, 23 Jan 2012 20:13:33 +0000 (18:13 -0200)]
Merge branch 'v4l_for_linus' into staging/for_v3.4

* v4l_for_linus:
  [media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

12 years ago[media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions
Josh Wu [Wed, 11 Jan 2012 03:58:29 +0000 (00:58 -0300)]
[media] V4L: atmel-isi: add clk_prepare()/clk_unprepare() functions

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoMerge branch 'v4l_for_linus' into staging/for_v3.4
Mauro Carvalho Chehab [Mon, 23 Jan 2012 20:11:30 +0000 (18:11 -0200)]
Merge branch 'v4l_for_linus' into staging/for_v3.4

* v4l_for_linus:
  [media] cxd2820r: sleep on DVB-T/T2 delivery system switch
  [media] anysee: fix CI init
  [media] cxd2820r: remove unused parameter from cxd2820r_attach
  [media] cxd2820r: fix dvb_frontend_ops

12 years ago[media] cxd2820r: sleep on DVB-T/T2 delivery system switch
Antti Palosaari [Fri, 20 Jan 2012 22:48:28 +0000 (19:48 -0300)]
[media] cxd2820r: sleep on DVB-T/T2 delivery system switch

Fix bug introduced by multi-frontend to single-frontend change.
It is safer to put DVB-T parts sleeping when auto-switching to DVB-T2
and vice versa. That was original behaviour.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] anysee: fix CI init
Antti Palosaari [Fri, 20 Jan 2012 20:39:17 +0000 (17:39 -0300)]
[media] anysee: fix CI init

No more error that error seen when device is plugged:
dvb_ca adapter 0: Invalid PC card inserted :(

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cxd2820r: remove unused parameter from cxd2820r_attach
Antti Palosaari [Thu, 19 Jan 2012 17:46:43 +0000 (14:46 -0300)]
[media] cxd2820r: remove unused parameter from cxd2820r_attach

Fix bug introduced by multi-frontend to single-frontend change.
This parameter is no longer used after multi-frontend to single-frontend change.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cxd2820r: fix dvb_frontend_ops
Antti Palosaari [Wed, 18 Jan 2012 16:57:33 +0000 (13:57 -0300)]
[media] cxd2820r: fix dvb_frontend_ops

Fix bug introduced by multi-frontend to single-frontend change.

* Add missing DVB-C caps
* Change frontend name as single frontend does all the standards

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] it913x v1.23 use it913x_config.chip_ver to select firmware
Malcolm Priestley [Fri, 20 Jan 2012 22:07:18 +0000 (19:07 -0300)]
[media] it913x v1.23 use it913x_config.chip_ver to select firmware

As recommended by Jason at ITE, the chip version should select firmware.

However, to continue to support IT9137 firmware with different configuration
the driver will use udev->descriptor.idVendor to select the difference
between IT9135 and IT9137.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ivtv: setup per-device caps
Hans Verkuil [Mon, 7 Nov 2011 10:25:10 +0000 (07:25 -0300)]
[media] ivtv: setup per-device caps

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] vivi: set device_caps
Hans Verkuil [Mon, 7 Nov 2011 09:53:06 +0000 (06:53 -0300)]
[media] vivi: set device_caps

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] V4L2: Add per-device-node capabilities
Hans Verkuil [Wed, 11 Jan 2012 09:45:05 +0000 (06:45 -0300)]
[media] V4L2: Add per-device-node capabilities

If V4L2_CAP_DEVICE_CAPS is set, then the new device_caps field is filled with
the capabilities of the opened device node.

The capabilities field traditionally contains the capabilities of the physical
device, being a superset of all capabilities available at the several device
nodes. E.g., if you open /dev/video0, then if it contains VBI caps then that means
that there is a corresponding vbi node as well. And the capabilities field of
both the video and vbi nodes should contain identical caps.

However, it would be very useful to also have a capabilities field that contains
just the caps for the currently open device, hence the new CAP bit and field.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] omap_vout: fix section mismatch
Tomi Valkeinen [Tue, 8 Nov 2011 08:47:08 +0000 (05:47 -0300)]
[media] omap_vout: fix section mismatch

Fix the following warning by using platform_driver_probe() instead of
platform_driver_register():

WARNING: drivers/media/video/omap/omap-vout.o(.data+0x24): Section
mismatch in reference from the variable omap_vout_driver to the function
.init.text:omap_vout_probe()
The variable omap_vout_driver references
the function __init omap_vout_probe()

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cinergyT2-fe: Fix bandwdith settings
Mauro Carvalho Chehab [Mon, 23 Jan 2012 15:15:22 +0000 (13:15 -0200)]
[media] cinergyT2-fe: Fix bandwdith settings

Changeset 7830bbaff9f mangled the bandwidth field for CinergyT2.
Properly fill it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoMerge tag 'v3.3-rc1' into staging/for_v3.3
Mauro Carvalho Chehab [Sun, 22 Jan 2012 01:23:15 +0000 (23:23 -0200)]
Merge tag 'v3.3-rc1' into staging/for_v3.3

* tag 'v3.3-rc1': (8187 commits)
  Linux 3.3-rc1
  x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits
  qnx4: don't leak ->BitMap on late failure exits
  qnx4: reduce the insane nesting in qnx4_checkroot()
  qnx4: di_fname is an array, for crying out loud...
  KEYS: Permit key_serial() to be called with a const key pointer
  keys: fix user_defined key sparse messages
  ima: fix cred sparse warning
  uml: fix compile for x86-64
  MPILIB: Add a missing ENOMEM check
  tpm: fix (ACPI S3) suspend regression
  nvme: fix merge error due to change of 'make_request_fn' fn type
  xen: using EXPORT_SYMBOL requires including export.h
  gpio: tps65910: Use correct offset for gpio initialization
  acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec
  intel_idle: Split up and provide per CPU initialization func
  ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2
  tg3: Fix single-vector MSI-X code
  openvswitch: Fix multipart datapath dumps.
  ipv6: fix per device IP snmp counters
  ...

12 years ago[media] az6007: CodingStyle fixes
Mauro Carvalho Chehab [Sat, 21 Jan 2012 15:52:39 +0000 (13:52 -0200)]
[media] az6007: CodingStyle fixes

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Enable the driver at the building system
Mauro Carvalho Chehab [Thu, 21 Jul 2011 21:33:26 +0000 (18:33 -0300)]
[media] az6007: Enable the driver at the building system

Add the corresponding entries to allow building this driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Use the right keycode for Terratec H7
Mauro Carvalho Chehab [Sat, 21 Jan 2012 15:41:21 +0000 (12:41 -0300)]
[media] az6007: Use the right keycode for Terratec H7

Instead of using a fake keycode, just for testing, use the
right one, for Terratec H7.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Convert IR to use the rc_core logic
Mauro Carvalho Chehab [Sat, 21 Jan 2012 15:20:30 +0000 (12:20 -0300)]
[media] az6007: Convert IR to use the rc_core logic

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix IR handling
Mauro Carvalho Chehab [Sat, 21 Jan 2012 15:14:13 +0000 (12:14 -0300)]
[media] az6007: Fix IR handling

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Be sure to use kmalloc'ed buffer for transfers
Mauro Carvalho Chehab [Sat, 21 Jan 2012 14:53:18 +0000 (11:53 -0300)]
[media] az6007: Be sure to use kmalloc'ed buffer for transfers

USB data transfers may not work if the buffer is allocated at
the stack. Be sure to use kmalloc on all places where a buffer
is needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Protect read/write calls with a mutex
Mauro Carvalho Chehab [Sat, 21 Jan 2012 14:19:16 +0000 (11:19 -0300)]
[media] az6007: Protect read/write calls with a mutex

This will avoid interference with CI and IR I/O operations.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Driver cleanup
Mauro Carvalho Chehab [Sat, 21 Jan 2012 13:35:12 +0000 (10:35 -0300)]
[media] az6007: Driver cleanup

Remove commented test code, remove unused poweroff stuff, and
fix the copyright data.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: code cleanups and fixes
Mauro Carvalho Chehab [Fri, 20 Jan 2012 21:37:01 +0000 (18:37 -0300)]
[media] az6007: code cleanups and fixes

Several changes were needed to make az6007 to work, producing
the same commands as the original driver. This patch does
that.

While here, be less verbose when debug is not enabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk: Allow enabling MERR/MVAL cfg
Mauro Carvalho Chehab [Sat, 21 Jan 2012 10:57:06 +0000 (07:57 -0300)]
[media] drxk: Allow enabling MERR/MVAL cfg

Those two settings are different when used with az6007. Add
a config option to enable it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk: add support for Mpeg output clock drive strength config
Mauro Carvalho Chehab [Fri, 20 Jan 2012 22:13:07 +0000 (19:13 -0300)]
[media] drxk: add support for Mpeg output clock drive strength config

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Use DRX-K dynamic clock mode
Mauro Carvalho Chehab [Fri, 20 Jan 2012 21:36:26 +0000 (18:36 -0300)]
[media] az6007: Use DRX-K dynamic clock mode

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk: Allow setting it on dynamic_clock mode
Mauro Carvalho Chehab [Fri, 20 Jan 2012 21:30:58 +0000 (18:30 -0300)]
[media] drxk: Allow setting it on dynamic_clock mode

This is used on az6007.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Use a per device private struct
Mauro Carvalho Chehab [Mon, 16 Jan 2012 23:37:13 +0000 (20:37 -0300)]
[media] az6007: Use a per device private struct

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Change it to use the MFE solution adopted at dvb-usb
Mauro Carvalho Chehab [Mon, 16 Jan 2012 21:57:51 +0000 (18:57 -0300)]
[media] az6007: Change it to use the MFE solution adopted at dvb-usb

This driver were written to use a previous solution for MFE at dvb-usb.
Due to the internal API changes, change the binding to work with the
new way.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Use the new MFE support at dvb-usb
Mauro Carvalho Chehab [Sun, 31 Jul 2011 13:11:32 +0000 (10:11 -0300)]
[media] az6007: Use the new MFE support at dvb-usb

Use the newly dvb-usb MFE support added by
changeset 9bd9e3bd2c57530dfe3057dd0aa9bdb37824925d.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: improve the error messages for az6007 read/write calls
Mauro Carvalho Chehab [Fri, 29 Jul 2011 14:40:40 +0000 (11:40 -0300)]
[media] az6007: improve the error messages for az6007 read/write calls

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix IR receive code
Mauro Carvalho Chehab [Fri, 29 Jul 2011 14:31:13 +0000 (11:31 -0300)]
[media] az6007: Fix IR receive code

The code still needs to be commented, as there's a mutex
missing at the az6007_read() call. A mutex there is needed,
in order to prevent RC (or CI) calls while other operations
are in progress.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Simplify the code by removing an uneeded function
Mauro Carvalho Chehab [Mon, 25 Jul 2011 15:49:46 +0000 (12:49 -0300)]
[media] az6007: Simplify the code by removing an uneeded function

Everything to reset the demod is already at
az6007_frontend_poweron().

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Simplify the read/write logic
Mauro Carvalho Chehab [Mon, 25 Jul 2011 15:45:16 +0000 (12:45 -0300)]
[media] az6007: Simplify the read/write logic

This patch introduces no functional changes. It basically defines
a macro for each different req found at the driver, and cleans the
code to use them, making easier to understand the code.

With regards to the IR handling code, although the original code
doesn't define what's the request, it is clear, from the USB logs,
that 0xc5 is for IR polling.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Change the az6007 read/write routine parameter
Mauro Carvalho Chehab [Mon, 25 Jul 2011 14:17:41 +0000 (11:17 -0300)]
[media] az6007: Change the az6007 read/write routine parameter

Use usb_device for those routines, as it allows using them on
all places. While there, rename to better express the meaning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix some init sequences and use the right firmwares
Mauro Carvalho Chehab [Mon, 25 Jul 2011 14:07:20 +0000 (11:07 -0300)]
[media] az6007: Fix some init sequences and use the right firmwares

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: need to define drivers name before including dvb-usb.h
Mauro Carvalho Chehab [Mon, 25 Jul 2011 13:38:20 +0000 (10:38 -0300)]
[media] az6007: need to define drivers name before including dvb-usb.h

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] drxk: Don't assume a default firmware name
Mauro Carvalho Chehab [Sun, 24 Jul 2011 12:25:39 +0000 (09:25 -0300)]
[media] drxk: Don't assume a default firmware name

Move the ngene/ddbridge firmware into their drivers.

There are two reasons for that:
1) The firmware used there didn't work for a few devices
I tested here (Terratec H5, H6 and H7);
2) At least Terratec H7 doesn't seem to require a firmware
for it to work.

After this change, if firmware is not specified, the driver will
use a rom-based firmware (this seems to be the case for Terratec
H7, although I need to better check the USB dumps to be sure about
that).

In any case, the firmware seems to be optional, as the DRX-K driver
don't return the firmware load error.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: make driver less verbose
Mauro Carvalho Chehab [Sat, 23 Jul 2011 14:54:40 +0000 (11:54 -0300)]
[media] az6007: make driver less verbose

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: move device PID's to the proper place
Mauro Carvalho Chehab [Sat, 23 Jul 2011 14:10:10 +0000 (11:10 -0300)]
[media] az6007: move device PID's to the proper place

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Replace the comments at the beginning of the driver
Mauro Carvalho Chehab [Sat, 23 Jul 2011 13:59:25 +0000 (10:59 -0300)]
[media] az6007: Replace the comments at the beginning of the driver

The comments there is wrong.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Get rid of az6007.h
Mauro Carvalho Chehab [Sat, 23 Jul 2011 13:55:10 +0000 (10:55 -0300)]
[media] az6007: Get rid of az6007.h

The header file serves for no purpose and exports some things
that should be static.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: CodingStyle cleanup
Mauro Carvalho Chehab [Sat, 23 Jul 2011 13:40:08 +0000 (10:40 -0300)]
[media] az6007: CodingStyle cleanup

make checkpatch.pl happy

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Remove some dead code that doesn't seem to be needed
Mauro Carvalho Chehab [Sat, 23 Jul 2011 13:12:12 +0000 (10:12 -0300)]
[media] az6007: Remove some dead code that doesn't seem to be needed

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Comment the gate_ctl mutex
Mauro Carvalho Chehab [Sat, 23 Jul 2011 12:58:38 +0000 (09:58 -0300)]
[media] az6007: Comment the gate_ctl mutex

The mutex is there to protect the I2C gate. However, for some reason,
it is being called twice:

[ 2103.542796] usbcore: registered new interface driver dvb_usb_az6007
[ 2103.772392] az6007: drxk_gate_ctrl: enable
[ 2103.793900] az6007: drxk_gate_ctrl: enable

For now, let's just comment, to allow the driver to run.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix the I2C code in order to handle mt2063
Mauro Carvalho Chehab [Sat, 23 Jul 2011 12:51:12 +0000 (09:51 -0300)]
[media] az6007: Fix the I2C code in order to handle mt2063

mt2063 uses a one-byte transfer. This requires a special handling
inside the i2c code. Fix it to properly accept i2c reads. This
is needed to make the mt2063 to be detected.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix it to allow loading it without crash
Mauro Carvalho Chehab [Fri, 22 Jul 2011 13:31:25 +0000 (10:31 -0300)]
[media] az6007: Fix it to allow loading it without crash

Add some fixes to allow frontend attachment. The patch is not
complete yet, as just the frontend 0 is initialized. So, more
changes will be needed, including some changes at dvb-usb core.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] az6007: Fix compilation troubles at az6007
Mauro Carvalho Chehab [Thu, 21 Jul 2011 21:31:14 +0000 (18:31 -0300)]
[media] az6007: Fix compilation troubles at az6007

Some changes are needed, in order to make az6007 compile with the
upstream tree. Most of the changes are due to the upstream drxk
module.

Even allowing its compilation, the driver is not working yet.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] dvb: Add a new driver for az6007
Mauro Carvalho Chehab [Thu, 21 Jul 2011 20:46:41 +0000 (17:46 -0300)]
[media] dvb: Add a new driver for az6007

Import the az6007 driver from Terratec H7 source, as-is.

It won't compile or run, so latter patches are needed in order
to fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoLinux 3.3-rc1
Linus Torvalds [Thu, 19 Jan 2012 23:04:48 +0000 (15:04 -0800)]
Linux 3.3-rc1

12 years agoMerge branches 'sched-urgent-for-linus', 'perf-urgent-for-linus' and 'x86-urgent...
Linus Torvalds [Thu, 19 Jan 2012 22:53:06 +0000 (14:53 -0800)]
Merge branches 'sched-urgent-for-linus', 'perf-urgent-for-linus' and 'x86-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/accounting, proc: Fix /proc/stat interrupts sum

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  tracepoints/module: Fix disabling tracepoints with taint CRAP or OOT
  x86/kprobes: Add arch/x86/tools/insn_sanity to .gitignore
  x86/kprobes: Fix typo transferred from Intel manual

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits
  x86, tsc: Fix SMI induced variation in quick_pit_calibrate()
  x86, opcode: ANDN and Group 17 in x86-opcode-map.txt
  x86/kconfig: Move the ZONE_DMA entry under a menu
  x86/UV2: Add accounting for BAU strong nacks
  x86/UV2: Ack BAU interrupt earlier
  x86/UV2: Remove stale no-resources test for UV2 BAU
  x86/UV2: Work around BAU bug
  x86/UV2: Fix BAU destination timeout initialization
  x86/UV2: Fix new UV2 hardware by using native UV2 broadcast mode
  x86: Get rid of dubious one-bit signed bitfield

12 years agoMerge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6
Linus Torvalds [Thu, 19 Jan 2012 22:52:03 +0000 (14:52 -0800)]
Merge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6

gpio bug fixes for v3.3

* tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6:
  gpio: tps65910: Use correct offset for gpio initialization
  gpio/it8761e: Restrict it8761e gpio driver to x86.
  gpio-ml-ioh: cleanup __iomem annotation usage
  gpio-ml-ioh: cleanup NULL pointer checking
  gpio-pch: cleanup __iomem annotation usage
  gpio-pch: cleanup NULL pointer checking

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Linus Torvalds [Thu, 19 Jan 2012 22:49:16 +0000 (14:49 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/viro/vfs

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  qnx4: don't leak ->BitMap on late failure exits
  qnx4: reduce the insane nesting in qnx4_checkroot()
  qnx4: di_fname is an array, for crying out loud...
  vfs: remove printk from set_nlink()
  wake up s_wait_unfrozen when ->freeze_fs fails

12 years agox86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits
H. Peter Anvin [Thu, 19 Jan 2012 20:41:25 +0000 (12:41 -0800)]
x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits

In checkin

  303395ac3bf3 x86: Generate system call tables and unistd_*.h from tables

the feature macros in <asm/unistd.h> were unified between 32 and 64
bits.  Unfortunately 32 bits requires __ARCH_WANT_SYS_IPC and this was
inadvertently dropped.

Reported-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/CALLzPKbeXN5gdngo8uYYU8mAow=XhrwBFBhKfG811f37BubQOg@mail.gmail.com
12 years agoMerge remote-tracking branch 'linus/master' into x86/urgent
H. Peter Anvin [Thu, 19 Jan 2012 20:56:50 +0000 (12:56 -0800)]
Merge remote-tracking branch 'linus/master' into x86/urgent

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
Linus Torvalds [Thu, 19 Jan 2012 19:46:08 +0000 (11:46 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/jmorris/linux-security

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  KEYS: Permit key_serial() to be called with a const key pointer
  keys: fix user_defined key sparse messages
  ima: fix cred sparse warning
  MPILIB: Add a missing ENOMEM check

12 years agoqnx4: don't leak ->BitMap on late failure exits
Al Viro [Thu, 19 Jan 2012 18:54:36 +0000 (13:54 -0500)]
qnx4: don't leak ->BitMap on late failure exits

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoqnx4: reduce the insane nesting in qnx4_checkroot()
Al Viro [Thu, 19 Jan 2012 18:40:57 +0000 (13:40 -0500)]
qnx4: reduce the insane nesting in qnx4_checkroot()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoqnx4: di_fname is an array, for crying out loud...
Al Viro [Thu, 19 Jan 2012 18:19:42 +0000 (13:19 -0500)]
qnx4: di_fname is an array, for crying out loud...

(struct qnx4_inode_entry *)(bh->b_data + some_offset)->di_fname
is not going to be NULL, TYVM...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoKEYS: Permit key_serial() to be called with a const key pointer
David Howells [Wed, 18 Jan 2012 10:04:29 +0000 (10:04 +0000)]
KEYS: Permit key_serial() to be called with a const key pointer

Permit key_serial() to be called with a const key pointer.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
12 years agokeys: fix user_defined key sparse messages
Mimi Zohar [Wed, 18 Jan 2012 10:03:14 +0000 (10:03 +0000)]
keys: fix user_defined key sparse messages

Replace the rcu_assign_pointer() calls with rcu_assign_keypointer().

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>