From patchwork Mon Mar 3 09:52:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Jeong X-Patchwork-Id: 3752511 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1EEAFBF13A for ; Mon, 3 Mar 2014 09:52:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 560CE201F0 for ; Mon, 3 Mar 2014 09:52:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89DA02012E for ; Mon, 3 Mar 2014 09:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754126AbaCCJw3 (ORCPT ); Mon, 3 Mar 2014 04:52:29 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:39011 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754114AbaCCJw2 (ORCPT ); Mon, 3 Mar 2014 04:52:28 -0500 Received: by mail-pa0-f51.google.com with SMTP id kq14so3587852pab.24 for ; Mon, 03 Mar 2014 01:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GcY2uL0Y++CBiSuDNyyg9E9rQLaBGHueGzGPO8Q+G4s=; b=xObqSoPV/kQ0e9FGnxIyJBWoN4TJ7XHv8OIDP/8aytYKuWhQXo8nMs16MNnREzu4pG tmUqykrFUY+0AVmh+PkePPgANcH4QodecE29yt9vhUwzV2XkRel87KATs4a5jt/vURZ+ CPYXc1NCKpuZeLc8bef4LD5BlaUPbHKXWDjScV9PaKVSCxAp4WE/brXa4ID07BEXxuBJ RqIlIjU8x668vmjR+tVmQ0aGnvcOW5ewSvFQuAGhbGSq0O9mH3VlSJ+kz7+YVHeJ1CGK iVWNH8tCqY4NZEvPzgXE79054I0I0RY79zJ6Dt9yhcTqqW1OCEukEDdpFLakv5dpJlMI izzQ== X-Received: by 10.68.163.3 with SMTP id ye3mr18795824pbb.78.1393840347909; Mon, 03 Mar 2014 01:52:27 -0800 (PST) Received: from localhost.localdomain ([117.111.1.107]) by mx.google.com with ESMTPSA id gj9sm34246459pbc.7.2014.03.03.01.52.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 01:52:27 -0800 (PST) From: Daniel Jeong To: Mauro Carvalho Chehab , Rob Landley , Sakari Ailus , Andy Shevchenko Cc: Hans Verkuil , Daniel Jeong , , Subject: [RFC v7 1/3] v4l2-controls.h: add addtional Flash fault bits Date: Mon, 3 Mar 2014 18:52:08 +0900 Message-Id: <1393840330-11130-2-git-send-email-gshark.jeong@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393840330-11130-1-git-send-email-gshark.jeong@gmail.com> References: <1393840330-11130-1-git-send-email-gshark.jeong@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Three Flash fault are added. V4L2_FLASH_FAULT_UNDER_VOLTAGE for the case low voltage below the min. limit. V4L2_FLASH_FAULT_INPUT_VOLTAGE for the case falling input voltage and chip adjust flash current not occur under voltage event. V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE for the case the temperature exceed the maximun limit Signed-off-by: Daniel Jeong --- include/uapi/linux/v4l2-controls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 2cbe605..1d662f6 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -812,6 +812,9 @@ enum v4l2_flash_strobe_source { #define V4L2_FLASH_FAULT_SHORT_CIRCUIT (1 << 3) #define V4L2_FLASH_FAULT_OVER_CURRENT (1 << 4) #define V4L2_FLASH_FAULT_INDICATOR (1 << 5) +#define V4L2_FLASH_FAULT_UNDER_VOLTAGE (1 << 6) +#define V4L2_FLASH_FAULT_INPUT_VOLTAGE (1 << 7) +#define V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE (1 << 8) #define V4L2_CID_FLASH_CHARGE (V4L2_CID_FLASH_CLASS_BASE + 11) #define V4L2_CID_FLASH_READY (V4L2_CID_FLASH_CLASS_BASE + 12)