From patchwork Tue Jan 22 19:46:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Frank_Sch=C3=A4fer?= X-Patchwork-Id: 2020531 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 958BF3FCDE for ; Tue, 22 Jan 2013 19:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755358Ab3AVTqJ (ORCPT ); Tue, 22 Jan 2013 14:46:09 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:40908 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625Ab3AVTqH (ORCPT ); Tue, 22 Jan 2013 14:46:07 -0500 Received: by mail-wg0-f41.google.com with SMTP id ds1so2020018wgb.2 for ; Tue, 22 Jan 2013 11:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=x5X6TBBdQkk34IgeDHAF+E3f6GY0AxPRut1sPVEvD8U=; b=xhJ+Wps4pscgR6XNiZmK58z5/vr4jUf9EZpFHFWOsh35xi7LJi/e9D4kEEIPZdFWR0 b5xOglfN1Rn6EKUQ98s6TxI8TjeGIDouBw4OJmL4dP9qRHm112OpWVYNoa7v2XvPDtys Fp5WzUUS9CQduYDE49HlN5GHWg+RHDDJ98ffsuGRKd9FK1EAlMnXpVOER2MxGlj99KUx Vbnp9Eh8FxI4bvqplYVOtGubK519KjYBvuep632fn6c8goG8G2YWKb41sMuiiEbr3Ob7 nlXL2d5JWcTHVxqLaxbdj0YT8S+DpjCUWcvbvKgu/q9syvuAvrzKVDELcbe0gWj5rHQe rokg== X-Received: by 10.180.14.2 with SMTP id l2mr23367254wic.2.1358883965730; Tue, 22 Jan 2013 11:46:05 -0800 (PST) Received: from Athlon64X2-5000.site (ip-37-24-90-62.unitymediagroup.de. [37.24.90.62]) by mx.google.com with ESMTPS id df2sm23077388wib.0.2013.01.22.11.46.04 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jan 2013 11:46:04 -0800 (PST) From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= To: mchehab@redhat.com Cc: linux-media@vger.kernel.org, fschaefer.oss@googlemail.com Subject: [PATCH] tuner-core: return tuner name with ioctl VIDIOC_G_TUNER Date: Tue, 22 Jan 2013 20:46:21 +0100 Message-Id: <1358883981-2645-1-git-send-email-fschaefer.oss@googlemail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org tuner_g_tuner() is supposed to fill struct v4l2_tuner passed by ioctl VIDIOC_G_TUNER, but misses setting the name field. Signed-off-by: Frank Schäfer Cc: stable@kernel.org Nacked-by: Hans Verkuil --- drivers/media/v4l2-core/tuner-core.c | 1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/drivers/media/v4l2-core/tuner-core.c b/drivers/media/v4l2-core/tuner-core.c index b5a819a..95a47cf 100644 --- a/drivers/media/v4l2-core/tuner-core.c +++ b/drivers/media/v4l2-core/tuner-core.c @@ -1187,6 +1187,7 @@ static int tuner_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) if (check_mode(t, vt->type) == -EINVAL) return 0; + strcpy(vt->name, t->name); if (vt->type == t->mode && analog_ops->get_afc) vt->afc = analog_ops->get_afc(&t->fe); if (analog_ops->has_signal)