Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp53570ybi; Thu, 13 Jun 2019 11:29:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvgFAlmi3xOefADKnvWQmtjwN9TBTDXClofbDekH1De71DDSF9HC+jzNTNxG0cx7mrn2oJ X-Received: by 2002:a63:4665:: with SMTP id v37mr8016142pgk.52.1560450554983; Thu, 13 Jun 2019 11:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560450554; cv=none; d=google.com; s=arc-20160816; b=Kd8uh8nxYiM9gLr5xINgg72IdU+rp1GSoVLBQDEj7gWJCVu9fovfkLcnXhgdUU7YNW C5n+prZ7w7L1+HzUlz+hSRNvWamGiLzibqaRTzwHSdynIx5JSGupBW82wkOPtpN1YvB9 PjtgZ0pAf4tEtpAdbrJKDeKxb7xg8LUBfMhLo6MJfLpxtUu0FDsmiEndb5CQsBhvOWmL xvIoBCNDezWekuS+40/Dh3w83NIqOWg2YX6mrJznk8pHyi7LpfyTecAdzpYa7SuZjwIB /yU8XCKgCzxpLEvrU7hOwTgNaXEHngk/uGyIdfQ8tt/B2DzwuAuKuZaJenn04Z4kauEr i7LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DCSwLCAumFrPz4M+TgatLYzC2CNUxBHne1EyoUjckX4=; b=yWBXLxXrdVCb25t+Zb9ZPT24pVYUpJtVUOroQwOl12dZDL9VddKJY/1TaGs/xEtNek rfnGQybMg4lAjlQIHWd4jgdQwpqLlCOZAi/4+RXSJC5PBPij7AN0NX1xVi/iJYOccqBB wBMF+SFhvuE2xo2OM36X3w0N660T4qiDdr9umVlGn5j1dMk3/PY/kEolBx8tttFYsAUK mTa4+PtMrXRIKxNoWvaBHceUpc1UdFYgcCRe9FSDtveRhvP0SGGPOydwWn4ueKz2LtUg cRG4p1//4I3W+CxNf8W7SIMsmIta19NKrJcBhScuHmueJ7LyZx8csif5ZFTUAKaolxNP Nl7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DRZH+bbs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn2si223092plb.273.2019.06.13.11.28.59; Thu, 13 Jun 2019 11:29:14 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=DRZH+bbs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728519AbfFMS0y (ORCPT + 99 others); Thu, 13 Jun 2019 14:26:54 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46846 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727301AbfFMS0x (ORCPT ); Thu, 13 Jun 2019 14:26:53 -0400 Received: by mail-pl1-f195.google.com with SMTP id e5so8497461pls.13 for ; Thu, 13 Jun 2019 11:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DCSwLCAumFrPz4M+TgatLYzC2CNUxBHne1EyoUjckX4=; b=DRZH+bbs/PxFORs+fs8o/Z/vFJ9lOPYBCTz8KJ0ez2NGE93BleqM4m3xLsXk8uPKdn 4fO2/l2PdlE2rWbY72e2SY0dHuZbwb0y8kL1OEwG4O9SJ0308kLRYYG22sLpePVXClqS DBxulwp11rR9In4MAt+LJuDAoqvgkgnpT6LtpC5EqwQbSK9m9fX9e1LLZ8lfDhr59KKD aTf3/txuFs3YgaSAzvBgVItKHmJPuVgrtGEj9+oMMLYqDldSeeAKIRHIqXC5CJ3yZMqE qdWlENTC25TGjbItWsM6aCPv6c2QCAu5KTCSIVHThiPyvsvLdo5M95fHyCxxn4YQUPUV v+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DCSwLCAumFrPz4M+TgatLYzC2CNUxBHne1EyoUjckX4=; b=LWW+CtdMEy4HNiT5+dqyzSk4t9F0dl5FFx7ZT4xKQOHMlOG+ZA7oCzFAmvrCCCZnXQ ZltzLYpQ0nGHNKnPBA4lQT0pv2vONVaVIfMa8PBL+yNXJkopsfUZBMLgUiQljkuRzv10 5AseDf7Qs4wZ0CcWtlDfqHw12pByUJwrrJ/ELaPpgapT4y/4+/ygS5E23ej+AQpnvFSq kjeDE7fkZWdbyJbALvRMTSl4C1uIfcTkk/Uzj7yIAs0fF89QjrtLZb7Zage6P+Lo+mvh 2ViKgszAtzY3vqVq9N20S8eXZHXMNbJsrgAYFGcgdu2tNRdnaj2QtMcrFaOPHAoINrPj cv4A== X-Gm-Message-State: APjAAAW+Y73MWYpfh03TN/SWCLFFqTW+xkVJbQ5PTKJiIifpsNlv6gm+ IpedIEIJ2hD5dFtzG9eJJZCfcVV17JXkEpke4oa+kA== X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr73666606plq.223.1560450412105; Thu, 13 Jun 2019 11:26:52 -0700 (PDT) MIME-Version: 1.0 References: <20190613182326.237391-1-nhuck@google.com> In-Reply-To: <20190613182326.237391-1-nhuck@google.com> From: Nick Desaulniers Date: Thu, 13 Jun 2019 11:26:41 -0700 Message-ID: Subject: Re: [PATCH v2] Input: atmel_mxt_ts - fix -Wunused-const-variable To: Nathan Huckleberry Cc: nick@shmanahar.org, dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 11:24 AM 'Nathan Huckleberry' via Clang Built Linux wrote: > Changes from v1 -> v2 > * Moved definition of mxt_video_fops into existing ifdef Thanks for the v2. Reviewed-by: Nick Desaulniers > --- a/drivers/input/touchscreen/atmel_mxt_ts.c > +++ b/drivers/input/touchscreen/atmel_mxt_ts.c > @@ -256,16 +256,6 @@ enum v4l_dbg_inputs { > MXT_V4L_INPUT_MAX, > }; > > -static const struct v4l2_file_operations mxt_video_fops = { > - .owner = THIS_MODULE, > - .open = v4l2_fh_open, > - .release = vb2_fop_release, > - .unlocked_ioctl = video_ioctl2, > - .read = vb2_fop_read, > - .mmap = vb2_fop_mmap, > - .poll = vb2_fop_poll, > -}; > - > enum mxt_suspend_mode { > MXT_SUSPEND_DEEP_SLEEP = 0, > MXT_SUSPEND_T9_CTRL = 1, > @@ -2218,6 +2208,16 @@ static int mxt_init_t7_power_cfg(struct mxt_data *data) > } > > #ifdef CONFIG_TOUCHSCREEN_ATMEL_MXT_T37 > +static const struct v4l2_file_operations mxt_video_fops = { > + .owner = THIS_MODULE, > + .open = v4l2_fh_open, > + .release = vb2_fop_release, > + .unlocked_ioctl = video_ioctl2, > + .read = vb2_fop_read, > + .mmap = vb2_fop_mmap, > + .poll = vb2_fop_poll, > +}; > + -- Thanks, ~Nick Desaulniers