Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1856812ybi; Mon, 1 Jul 2019 01:31:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCYp2iq2HIYbxiSi8Ba/Iak83eDiy594aSsIq/Om2Ibg/M7fb28rjdVGMkA9XZY/dayy5o X-Received: by 2002:a63:6a81:: with SMTP id f123mr1931303pgc.348.1561969914148; Mon, 01 Jul 2019 01:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561969914; cv=none; d=google.com; s=arc-20160816; b=X1pIPY0PPdwYmkrl37sZmT76XQtpCns8VmMYmwzpRJ/XmZVoYtBovBekz0UFW+fn3K 81DPqi64ZwbOG+J24Uzak1vAbFodilaygQr6QqSS6KovVBHoMzSUSKGA6x5olifAM514 JdjUNS5nM2XDaiydxYkzlPOfXDuE4HHmEOmS0Yw643lCCa3qgJ62KeivO+DwqUx+9iHR u5oM3jVudLka/zDA7SfGJXuw8DsLE8mwaq0cOS3gzH/zSKTGd4LdbPvSlpzbELhp3g61 oFzTxi/yJ1QnwMAr7Cel7Snpvo1uzyRStpOD5ewy/vJuaKQV9MFSSriyyK9dhnAPKMCy mR2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5RAq9uYszW22W7U67V/4aDozO9ynSRPC2gwD5Pz0Hy8=; b=vcRdfiNz2vf7MbKtxnX5IZDuAdIDp3PvoGcKB3vT5ChV8frx5rBEARCtLa3nkBpsnT oS65+eBSeg4UJKFJh2vvIatB61BFLjEt5Dda3zPwvTn9mYeG0BqGrkIs72D0ackjRAPx tgQy3rkIReir/jkbtOrp0V/jHo3+Ilqv5YSsz4yRRNeSlpd/JkMpce59sZDEVOWboJU9 t2MGPmSlCV2Y0entQt19DJ4wN3hUj/5U/47v6gaxnENJZp39+9mqkPs6rH8TldrboNgr fGyg4NFKjst+PD9r7d3adDST7oRdiCXxN5X44CGB/PUwXp5UW7ZCNuxxdDUtEbV7Pz1q D/Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U9zpQEOj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y192si10414007pfg.172.2019.07.01.01.31.38; Mon, 01 Jul 2019 01:31:54 -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=@gmail.com header.s=20161025 header.b=U9zpQEOj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbfGAIT6 (ORCPT + 99 others); Mon, 1 Jul 2019 04:19:58 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45235 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfGAIT6 (ORCPT ); Mon, 1 Jul 2019 04:19:58 -0400 Received: by mail-pl1-f194.google.com with SMTP id bi6so6936536plb.12; Mon, 01 Jul 2019 01:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5RAq9uYszW22W7U67V/4aDozO9ynSRPC2gwD5Pz0Hy8=; b=U9zpQEOjsvJX//DXmuEHQlEU+zgOiUqln+U1b9OxAfBXMRZ3k77UT9DjKt6cu52zYN gEBlv559tlGf3044EoG7nS5WmGjFebc3IlHvcsIb/RXitQ6drGbAGfGctgl3PxXHYmdT mMfmI8O7eNp262T61M8a2nM7RWWrsiLchbYReaOusmGe+EswBNPY9J7j2y1Vb6/ng9gs BEOSzIoJKGtDX9QQQfQ0BowezkhyGBxcX++pngTnnGcqoQ0m0RUQXHw47NgXQF+v/Ye3 z5RFFjY5FsiMon6d3BC6NThvKzt1RmlbT9vYTajQh8TCdyXCBzPdbP+xk5faCr1IzL0z Ji+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5RAq9uYszW22W7U67V/4aDozO9ynSRPC2gwD5Pz0Hy8=; b=GwayWtz3OBgK31pobmI11F2gUkjGHiZ+IVsq37ltajtyyLl9yjMotdTXaAiEWHAmIf ESwLQE1xrvj1MaxbkWYizVn0OWcIP+FiK+2fGKhSmCO3KhJH2LOPHzXevp05Pxh7AsVJ FqwqBM8m9nwFIxCnACPRwPr7EKsVnNrls0w8LYU8h2tBhynP8Tn5fBAdIJpaDHW08ES9 MaXSvau+83k2xCWXpp2qDeSG2D3NM4iGWCiGz8QYCH3iHqSEn3ybJmNnkrWbvTzbdXuC ApcbfPMsI7xhRkj/9SlVH7GKOeEHlEN5zryp0eRVPTe6H/5QNmN/1lvROO34ypuNMlXc 7eDw== X-Gm-Message-State: APjAAAWWphiefuHVz0QjEjyX4uFZyi5qVr0qmQ1u2/PFPhCXZXXlH57T zlfkjTkV0cU8JRWu76Y/ikg= X-Received: by 2002:a17:902:d20a:: with SMTP id t10mr26960233ply.52.1561969197422; Mon, 01 Jul 2019 01:19:57 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id x26sm11504811pfq.69.2019.07.01.01.19.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 01:19:56 -0700 (PDT) Date: Mon, 1 Jul 2019 01:19:55 -0700 From: Dmitry Torokhov To: Nick Desaulniers Cc: Nathan Huckleberry , nick@shmanahar.org, linux-input@vger.kernel.org, LKML , clang-built-linux Subject: Re: [PATCH v2] Input: atmel_mxt_ts - fix -Wunused-const-variable Message-ID: <20190701081955.GF172968@dtor-ws> References: <20190613182326.237391-1-nhuck@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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:26:41AM -0700, Nick Desaulniers wrote: > 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 Applied, thank you. > > > --- 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 -- Dmitry