From patchwork Wed Feb 26 07:04:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Jeong X-Patchwork-Id: 3721371 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 2F505BF13A for ; Wed, 26 Feb 2014 07:04:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 54217201DD for ; Wed, 26 Feb 2014 07:04:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EFD220148 for ; Wed, 26 Feb 2014 07:04:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751334AbaBZHE1 (ORCPT ); Wed, 26 Feb 2014 02:04:27 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:47898 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbaBZHEZ (ORCPT ); Wed, 26 Feb 2014 02:04:25 -0500 Received: by mail-pa0-f41.google.com with SMTP id fa1so582511pad.0 for ; Tue, 25 Feb 2014 23:04:25 -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=QHpcZEdW8cNCP6Sx0BcvmuSQisxxmSsPM7wX0ujDGvnQW9RvDKPRRW8BWnSsmZpTjX CCBtmQ5TyCrXUxdLuN27KnqvyvVsVDyRcGpHRPjWWvpU4G3ftFJ3fIHXqvR+O7k37Kwh ZoLlNPPr/uyesPp1Z2wsXQoBDfxZK/6uzeLpfecuChy0UAl+NAWvuhJbXeF+Xw0FA0J/ 5EVCPFrv3GKpJG8BYQDS+OwIHzAgKQS5LDCTgA7z+T2zhl1fVMYUBZGLf1tcFnUXCBeI dNTK9ul09AEmWKuB1nRwH2MV8G54z3MNikEleqrLHttx9+KUNeY+LhJAtcV3F0y+ScXm 7Tmg== X-Received: by 10.67.22.3 with SMTP id ho3mr6734221pad.128.1393398265272; Tue, 25 Feb 2014 23:04:25 -0800 (PST) Received: from localhost.localdomain ([117.111.1.107]) by mx.google.com with ESMTPSA id sx8sm160427194pab.5.2014.02.25.23.04.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 23:04:24 -0800 (PST) From: Daniel Jeong To: Mauro Carvalho Chehab , Rob Landley , Sakari Ailus , Andy Shevchenko Cc: Hans Verkuil , Daniel Jeong , , Subject: [RFC v6 1/3] v4l2-controls.h: add addtional Flash fault bits Date: Wed, 26 Feb 2014 16:04:09 +0900 Message-Id: <1393398251-5383-2-git-send-email-gshark.jeong@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393398251-5383-1-git-send-email-gshark.jeong@gmail.com> References: <1393398251-5383-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)