From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28DFAC47404 for ; Sat, 5 Oct 2019 06:53:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E08E4222C4 for ; Sat, 5 Oct 2019 06:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570258389; bh=xQ/9PkmdA4psfncbirvKStIGqZr1b9MHoU44bly1pZo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=BRDMvK+ueZlUic/qRc8ciXhIyzGMckg1rXtq77LOcaQ/c261KWWn9Db+nLWYxu6CC RdPFeGsan6Xw9oPcagqQzaaXsMo2L0zdFMxMsM4fpqE1HM5J2o/4biw3J0SZXN9EGB G3Hzd+ZfG3JIN0ytbzrQpHK3D6QiV9Niq5DP2AH4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbfJEGxI (ORCPT ); Sat, 5 Oct 2019 02:53:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:53488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfJEGxH (ORCPT ); Sat, 5 Oct 2019 02:53:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 797AD2133F; Sat, 5 Oct 2019 06:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570258387; bh=xQ/9PkmdA4psfncbirvKStIGqZr1b9MHoU44bly1pZo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OeXDFkmC0kke7PwKSM7PsKyJVyZOG3G9H7LFqnuv1x4VzJugUTr8tIWnQT5pWGHGo W/jbBi3DYJqmW0LMFv+jZ5vVc080E3Gr82eRxFtGSvg5DHM4GKoPnDuRLbuya6Oq5O 8GajqyHgNLaKqjTxAddGrBgZOEBm9RdSvJPiYUhk= Date: Sat, 5 Oct 2019 08:53:04 +0200 From: Greg Kroah-Hartman To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Geert Uytterhoeven , Richard Leitner , Rob Herring , Frank Rowand , linux-usb@vger.kernel.org Subject: Re: [PATCH 06/10] usb: usb251xb: Use of_device_get_match_data() Message-ID: <20191005065304.GB928719@kroah.com> References: <20191004214334.149976-1-swboyd@chromium.org> <20191004214334.149976-7-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191004214334.149976-7-swboyd@chromium.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 02:43:30PM -0700, Stephen Boyd wrote: > Use the more modern API here instead of using of_match_device() and > avoid casting away const from the returned pointer by pushing the const > type through to the users. This nicely avoids referencing the match > table when it is undefined with configurations where CONFIG_OF=n and > avoids const issues. > > Cc: Arnd Bergmann > Cc: Geert Uytterhoeven > Cc: Richard Leitner > Cc: Greg Kroah-Hartman > Cc: Rob Herring > Cc: Frank Rowand > Cc: > Signed-off-by: Stephen Boyd > --- > > Please ack or pick for immediate merge so the last patch can be merged. Acked-by: Greg Kroah-Hartman