From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934438Ab3BTSVv (ORCPT ); Wed, 20 Feb 2013 13:21:51 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:34123 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753714Ab3BTSVu (ORCPT ); Wed, 20 Feb 2013 13:21:50 -0500 Date: Wed, 20 Feb 2013 10:21:35 -0800 From: Dmitry Torokhov To: Simon Glass Cc: LKML , Samuel Ortiz , Luigi Semenzato , Vincent Palatin , Grant Likely , Rob Herring , Rob Landley , Sourav Poddar , Felipe Balbi , Tony Lindgren , Roland Stigge , Wolfram Sang , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v5 6/6] Input: Add ChromeOS EC keyboard driver Message-ID: <20130220182135.GC15152@core.coreip.homeip.net> References: <1361381079-26747-1-git-send-email-sjg@chromium.org> <1361381079-26747-7-git-send-email-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1361381079-26747-7-git-send-email-sjg@chromium.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2013 at 09:24:39AM -0800, Simon Glass wrote: > + > + code = keycodes[pos]; > + new_state = kb_state[col] & (1 << row); > + if (!!new_state != test_bit(code, idev->key)) { > + dev_dbg(ckdev->dev, > + "changed: [r%d c%d]: byte %02x\n", > + row, col, new_state); > + > + input_report_key(idev, code, new_state); Incorrect indentation. > + } ... > +static int cros_ec_keyb_probe(struct platform_device *pdev) > +{ > + struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); > + struct device *dev = ec->dev; > + struct cros_ec_keyb *ckdev = NULL; > + struct input_dev *idev = NULL; Why are we assigning these to NULL? Otherwise Acked-by: Dmitry Torokhov -- Dmitry