Received: by 10.192.165.148 with SMTP id m20csp484341imm; Wed, 25 Apr 2018 02:53:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/xbdPrwwGsBz+PsJdivnM8FcqSGPByFmInWqpQUQWx75i2VnRMWtm+EQuMmGpO1VwYdHPa X-Received: by 10.99.99.198 with SMTP id x189mr22840498pgb.371.1524649993249; Wed, 25 Apr 2018 02:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524649993; cv=none; d=google.com; s=arc-20160816; b=AsCVcvs/bJiu0WmhURMxLTpzZUck+sDatksVA8/THEsJbI4M9CTdI39iJ7XNLewbAt KaDmT6i+lkMltPEU7OKU7GlmP+MMajlfG4alZcqxTceEwXEM9oQPShSHJKZSdN7uA3kY RlvqC67MjQ0pZTX1qdJZmDisWUXB6TYgxMvBYARbakMRepbUMeBHg3OdH8bBfAnVpdIH hIEGl2gcLIMJdr99I7bZOT41jSp8+O223wsYBj179wRdYHQq8LQBPSEhCW4rzdbXorAw C4Rs6MMUV+21vKb/Eb14GvUJ6dcPVApooV1EQGBt+wYSeEQQjlrwSxC62EStpe1HtVMo tvPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HfjVekUjtiz0xF3W1CiFyY63s/MFoB2i76y/jtxFMZM=; b=jXkry3i/FVbLgbeEro1r7Du0UbEqkO2U3pJ4eEGfRyQ063l8Ixa2uReCGDfOdnBYb8 BlkntKydDokQKL2JXm/0U6AKGtMC9qvbZVXXnRv65aPnB7v+8Ng0Vt9d5FZgFhIpEd2r y/IZXKPwDX/AupXJh8AhfbEb0Bb5li2Ym0MLR5wZT6b86aahsbPsG41c0vR9SV9sy6Ol 9ejRbBGjO5JWR+FV5445NQAsEq5yrk4vtThpFXeK7ORCsfNEs2+AQO3spK81YylHa9Pj pqlFoR9LvR0HewcQjRA6Xo7eR+qcdpRyjtnKqmdFttMINKBddQOaOOC0hIej4oLj9xw4 Dz2A== 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 b25si13343376pgf.146.2018.04.25.02.52.58; Wed, 25 Apr 2018 02:53:13 -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 S1751989AbeDYJvs (ORCPT + 99 others); Wed, 25 Apr 2018 05:51:48 -0400 Received: from mga04.intel.com ([192.55.52.120]:41032 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbeDYJvq (ORCPT ); Wed, 25 Apr 2018 05:51:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2018 02:51:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,325,1520924400"; d="scan'208";a="49786020" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 25 Apr 2018 02:51:42 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 25 Apr 2018 12:51:41 +0300 Date: Wed, 25 Apr 2018 12:51:41 +0300 From: Mika Westerberg To: Javier Arteaga Cc: Lee Jones , Dan O'Donovan , Andy Shevchenko , Heikki Krogerus , Linus Walleij , Jacek Anaszewski , Pavel Machek , linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH RESEND 1/3] mfd: upboard: Add UP2 platform controller driver Message-ID: <20180425095141.GL2173@lahna.fi.intel.com> References: <20180421085009.28773-1-javier@emutex.com> <20180421085009.28773-2-javier@emutex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180421085009.28773-2-javier@emutex.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 21, 2018 at 09:50:07AM +0100, Javier Arteaga wrote: > +static const struct acpi_device_id upboard_acpi_match[] = { > + { "AANT0F01", (kernel_ulong_t) &upboard_up2_data }, No space after cast so write it like, { "AANT0F01", (kernel_ulong_t)&upboard_up2_data }, > + { } > +}; > +MODULE_DEVICE_TABLE(acpi, upboard_acpi_match); > + > +static int upboard_probe(struct platform_device *pdev) > +{ > + struct upboard *upboard; > + const struct acpi_device_id *id; > + const struct upboard_data *upboard_data; > + int ret; > + > + id = acpi_match_device(upboard_acpi_match, &pdev->dev); > + if (!id) > + return -ENODEV; > + > + upboard_data = (const struct upboard_data *) id->driver_data; Ditto and to other places. Otherwise looks good to me.