From patchwork Fri May 15 17:20:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 24142 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 n4FHIkil031122 for ; Fri, 15 May 2009 17:20:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754997AbZEORUH (ORCPT ); Fri, 15 May 2009 13:20:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755086AbZEORUG (ORCPT ); Fri, 15 May 2009 13:20:06 -0400 Received: from mail.gmx.net ([213.165.64.20]:51239 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754997AbZEORUF (ORCPT ); Fri, 15 May 2009 13:20:05 -0400 Received: (qmail invoked by alias); 15 May 2009 17:20:05 -0000 Received: from p57BD0961.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.9.97] by mail.gmx.net (mp018) with SMTP; 15 May 2009 19:20:05 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1/8vKcjqPj8vIPOVK0jiFB6AjIGD/87ZqsDJBWH+e jyOAl5s2S7eeKS Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1M5150-0002ZZ-NT; Fri, 15 May 2009 19:20:18 +0200 Date: Fri, 15 May 2009 19:20:18 +0200 (CEST) From: Guennadi Liakhovetski To: Linux Media Mailing List cc: Hans Verkuil , Magnus Damm , Robert Jarzmik , Darius Augulis , Paul Mundt Subject: [RFC 09/10 v2] v4l2-subdev: re-add s_standby to v4l2_subdev_core_ops In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org NOT FOR SUBMISSION. Probably, another solution has to be found. soc-camera drivers need an .init() (marked as "don't use") and a .halt() methods. Signed-off-by: Guennadi Liakhovetski --- Hans, you moved s_standby to tuner_ops, and init is not recommended for new drivers. Suggestions? include/media/v4l2-subdev.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index 1785608..ba907be 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -97,6 +97,7 @@ struct v4l2_subdev_core_ops { int (*g_chip_ident)(struct v4l2_subdev *sd, struct v4l2_dbg_chip_ident *chip); int (*log_status)(struct v4l2_subdev *sd); int (*init)(struct v4l2_subdev *sd, u32 val); + int (*s_standby)(struct v4l2_subdev *sd, u32 standby); int (*load_fw)(struct v4l2_subdev *sd); int (*reset)(struct v4l2_subdev *sd, u32 val); int (*s_gpio)(struct v4l2_subdev *sd, u32 val);