Received: by 10.192.165.148 with SMTP id m20csp443604imm; Wed, 25 Apr 2018 02:01:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Vpm/1bMlWP+M4pf7RrhHCjD5pgZkXYRD1oAfHA81UGH1uOcI+Sx2dAOrWfxzd4aAv8gtQ X-Received: by 10.99.36.7 with SMTP id k7mr23186562pgk.63.1524646917970; Wed, 25 Apr 2018 02:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524646917; cv=none; d=google.com; s=arc-20160816; b=MIOMdvJZhJAa8ZrK3PbTRpWG20Nl63nBOS+AUXUFx6hXsregbxVG66/M5i8dqgzXQn Nws5XV+9qALP+2Z82woy8fnS8pY8AcBTA9AyHnELAoEgi1GdqsfrgmfC+43JeOtAcGF9 RZBNvCWiDoCInz6MDnqnv7ZT1Iu/VD9mO7dcsArONMfg/M8Qic1lwgs4OA5ZMtoVCjEP awtTRbAJDZ9cCaB555HfwzAK6LjIFduB4qYqkQDL538JSFKUtlx7qznebQyIbh5eEwag i2G1bWdZ2Fcjoc3GErfDBWgSvJpWbCiE4/Hy2cpUyNX2sIkMCrcmA3+w9nUxLpvY3Hjr muLQ== 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:arc-authentication-results; bh=PCy3GedQX5W/rBM9J9X69XcGzBl6NxEIIBjF9v+3dPY=; b=e0J4Ugj6WO8Ciay7Varren3FQjAaTI4C1ArmW6NOKdYMfybEQi+HcdV5FPOYirA7SO S0LjJKMrcL5N7A1MBlSTKsXMP65SDyA3IEaOGjxRzLO2qqe15m+IBWoGo9rCopo3GOvq kln3sTmjLDnEcGPV77MnlBDj/N8POp2JSFXn1cOXAZpvsMUm5VbmcC7qaX8MgpEToFVr KIL14UnjwTgWnVXG3RUv4AUQ4dbdswD7ALZ1H70gIUPd+Cos3cCoxziYH7Jw/wp11m24 iVJES9nOAKl3Aobi9r0gQh4K8VQocbhBk0aUATNrUCzgGlEw73Ws4+4fAJAsea0A7VxG rz4w== 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 m65si15290269pfb.130.2018.04.25.02.01.43; Wed, 25 Apr 2018 02:01:57 -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 S1751501AbeDYJAk (ORCPT + 99 others); Wed, 25 Apr 2018 05:00:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41950 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbeDYJAi (ORCPT ); Wed, 25 Apr 2018 05:00:38 -0400 Received: from localhost (unknown [37.168.186.153]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6898234; Wed, 25 Apr 2018 09:00:37 +0000 (UTC) Date: Wed, 25 Apr 2018 11:00:31 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: Rob Herring , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 3/7] gnss: add generic serial driver Message-ID: <20180425090031.GD13295@kroah.com> References: <20180424163458.11947-1-johan@kernel.org> <20180424163458.11947-4-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424163458.11947-4-johan@kernel.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 06:34:54PM +0200, Johan Hovold wrote: > +static inline void *gnss_serial_get_drvdata(struct gnss_serial *gserial) > +{ > + return &gserial[1]; > +} Oh that's the best hack I have seen in a long time. I need to remember that one for next time. Anyway, in reading this driver, I don't think the module reference counting is being handled here, so you might want to add that to the gnss core to keep things from going south if modules are unloaded. thanks, greg k-h