From patchwork Sun Jan 25 23:00:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kay Sievers X-Patchwork-Id: 3930 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0PNHCLp003258 for ; Sun, 25 Jan 2009 23:17:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750775AbZAYXRL (ORCPT ); Sun, 25 Jan 2009 18:17:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750786AbZAYXRL (ORCPT ); Sun, 25 Jan 2009 18:17:11 -0500 Received: from mail-fx0-f26.google.com ([209.85.220.26]:59220 "EHLO mail-fx0-f26.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbZAYXRK (ORCPT ); Sun, 25 Jan 2009 18:17:10 -0500 Received: by fxm7 with SMTP id 7so2278456fxm.13 for ; Sun, 25 Jan 2009 15:17:08 -0800 (PST) Received: by 10.103.52.7 with SMTP id e7mr345587muk.115.1232924466351; Sun, 25 Jan 2009 15:01:06 -0800 (PST) Received: from ?192.168.178.69? (g224067134.adsl.alicedsl.de [92.224.67.134]) by mx.google.com with ESMTPS id n7sm6107074mue.59.2009.01.25.15.01.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 15:01:05 -0800 (PST) Subject: v4l: struct device - replace bus_id with dev_name(), dev_set_name() From: Kay Sievers To: mchehab@infradead.org Cc: linux-media@vger.kernel.org, gregkh Date: Mon, 26 Jan 2009 00:00:16 +0100 Message-Id: <1232924416.2924.26.camel@nga> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Kay Sievers Subject: v4l: struct device - replace bus_id with dev_name(), dev_set_name() Cc: mchehab@infradead.org Cc: linux-media@vger.kernel.org Acked-by: Greg Kroah-Hartman Signed-off-by: Kay Sievers --- drivers/media/radio/radio-tea5764.c | 3 ++- drivers/media/video/v4l2-device.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c @@ -298,7 +298,8 @@ static int vidioc_querycap(struct file * strlcpy(v->driver, dev->dev.driver->name, sizeof(v->driver)); strlcpy(v->card, dev->name, sizeof(v->card)); - snprintf(v->bus_info, sizeof(v->bus_info), "I2C:%s", dev->dev.bus_id); + snprintf(v->bus_info, sizeof(v->bus_info), + "I2C:%s", dev_name(&dev->dev)); v->version = RADIO_VERSION; v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; return 0; --- a/drivers/media/video/v4l2-device.c +++ b/drivers/media/video/v4l2-device.c @@ -34,7 +34,7 @@ int v4l2_device_register(struct device * spin_lock_init(&v4l2_dev->lock); v4l2_dev->dev = dev; snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", - dev->driver->name, dev->bus_id); + dev->driver->name, dev_name(dev)); dev_set_drvdata(dev, v4l2_dev); return 0; }