Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp432289imm; Mon, 2 Jul 2018 14:25:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKOJc77hS/Hr7nAbArtm6behORrcv1nkRzanlCLXHq9cznEgq8wYfMBgQrXoCmidhbfrgZs X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr26929058plg.68.1530566716498; Mon, 02 Jul 2018 14:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530566716; cv=none; d=google.com; s=arc-20160816; b=0B0V0AVoZNy5xkL62O5tt6FsZ0hfVOVDx+XmcSgZ8CWOLyUDzsQxGCqT87FugbR6Yk vYveYYotzrUPJBJY/kAFVIOL1sSf0tQGLMW+6tRZJ25HQstu7Wn0BH47arwwXr0/CQbg ttLM7slzyptd8Vz9tBIl2hvGTX2QtrkeEcEUAIzSUHdY4ZRpSERRN2+L8aYwNS6DYvP6 UKMixOdeY1mdvS9Ks/mfdq6qamVzrRMG/tYERkdr4y9XlkAqBUzJxn34/XIRoENl9jh8 HmlghnwwdL0Xd76364bH3CsnA0xiCsEhpbIyB4vf430R9HBao4418K+jpQkt9dpwdkW9 v8Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=+VHRyTOCZBrgQNyNVjZpnzs2qSu8MvHDcrOHpthfP/w=; b=JDWH6BCD8yd5VTdEYbwNOjXA8ocee5pgSwXiqo6M+SDOcPduTv+2nJZ0YyS++I0ozt 1Hekt4yyPAVMfSlF/sKEYBqMtenfr26xa/FshCJtnkvw55dQH7zOBlxB0JWNbCbDCr6c L1slSVeSTc5MsQ8uUCM7wqUuNw6gTg5Fpcyan7AU0rF0yilPqacpUCG0FLQ7MwCS4QMH 7b0S1XjwaZ+lKUflZxyqOEfAKcbffxQEf5RcE4e1QrVmfRWagy+Fal+/Db9tPikLPxM0 2AcY6teRwXCXoSPKRm8KYG7aw3LYDTF40J7wsrucAYCfNPM++53tLLbv0JV8otKGmVhQ i2Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5-v6si14181856pgc.351.2018.07.02.14.25.01; Mon, 02 Jul 2018 14:25:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502AbeGBVXe (ORCPT + 99 others); Mon, 2 Jul 2018 17:23:34 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:41276 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeGBVXb (ORCPT ); Mon, 2 Jul 2018 17:23:31 -0400 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fa6IB-00076s-Gl; Mon, 02 Jul 2018 23:23:27 +0200 From: "Maciej S. Szmigiero" To: Michael Krufky , Mauro Carvalho Chehab Cc: Andy Walls , linux-kernel , linux-media@vger.kernel.org, Hans Verkuil Subject: [PATCH v7 2/6] cx25840: add kernel-doc description of struct cx25840_state Date: Mon, 2 Jul 2018 23:23:22 +0200 Message-Id: <761723d6712a2fe01b8118acfd9444ab9bcf917f.1530565770.git.mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit describes a device instance private data of the driver (struct cx25840_state) in a kernel-doc style comment. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.h | 33 ++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.h b/drivers/media/i2c/cx25840/cx25840-core.h index fb13a624d2e3..c323b1af1f83 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.h +++ b/drivers/media/i2c/cx25840/cx25840-core.h @@ -45,6 +45,35 @@ enum cx25840_media_pads { CX25840_NUM_PADS }; +/** + * struct cx25840_state - a device instance private data + * @c: i2c_client struct representing this device + * @sd: our V4L2 sub-device + * @hdl: our V4L2 control handler + * @volume: audio volume V4L2 control (non-cx2583x devices only) + * @mute: audio mute V4L2 control (non-cx2583x devices only) + * @pvr150_workaround: whether we enable workaround for Hauppauge PVR150 + * hardware bug (audio dropping out) + * @radio: set if we are currently in the radio mode, otherwise + * the current mode is non-radio (that is, video) + * @std: currently set video standard + * @vid_input: currently set video input + * @aud_input: currently set audio input + * @audclk_freq: currently set audio sample rate + * @audmode: currently set audio mode (when in non-radio mode) + * @vbi_line_offset: vbi line number offset + * @id: exact device model + * @rev: raw device id read from the chip + * @is_initialized: whether we have already loaded firmware into the chip + * and initialized it + * @vbi_regs_offset: offset of vbi regs + * @fw_wait: wait queue to wake an initalization function up when + * firmware loading (on a separate workqueue) finishes + * @fw_work: a work that actually loads the firmware on a separate + * workqueue + * @ir_state: a pointer to chip IR controller private data + * @pads: array of supported chip pads (currently only a stub) + */ struct cx25840_state { struct i2c_client *c; struct v4l2_subdev sd; @@ -66,8 +95,8 @@ struct cx25840_state { u32 rev; int is_initialized; unsigned vbi_regs_offset; - wait_queue_head_t fw_wait; /* wake up when the fw load is finished */ - struct work_struct fw_work; /* work entry for fw load */ + wait_queue_head_t fw_wait; + struct work_struct fw_work; struct cx25840_ir_state *ir_state; #if defined(CONFIG_MEDIA_CONTROLLER) struct media_pad pads[CX25840_NUM_PADS];