Received: by 10.192.165.148 with SMTP id m20csp763269imm; Wed, 25 Apr 2018 07:19:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpz7F5Q6zw8jW1ceUtdaAE9zxq3uCnc8WBQfK8krLi0KgrjI0k7PIDx2LdDOjXSOBYONeTR X-Received: by 2002:a17:902:74c6:: with SMTP id f6-v6mr6247518plt.7.1524665994198; Wed, 25 Apr 2018 07:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524665994; cv=none; d=google.com; s=arc-20160816; b=K/wtT1275ngb1NyMOJArU/hkb2Ty/vJiNwjNBL7/4ulCwUpgrKLexIy19QW1cMg5Di 2VAd8IkCKc50uJ760jQxJg5D0j55ICRY8yxMSWTo9JJ+LMCYnx4znR2/mvzDiMGK/02+ nyCWJfzNxX2U5TsOWw1AyUML3vpD9nlqywWnKThVnScNwCWei1bJbpP/cntY3M73LJvo c8iKmbkOfoe3Kml0z48fBEij2IE5qC/nxtisXnSVCutADPX49VQnSxcmMftRHLiNcurV UxxKssia/CCfSPPkdyqE+SW5Qa8OKvURYP1gsi/vc20RJFC5/X5iiruKFaMuEQnMkNye E1dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=+zEmIYDe3CtWjhlDT7KqWnE59jzlXNLXicBzzOW6lpU=; b=Qcw2KLBJCbimDwXIpEY8bPdoHBzbn+UAxhH1R5M1kPh8Td0oAto4QEolj1Smmcek0A g0rNjD1Fdx6ji85AkL89Kg6I1mnd2dKGzHDfB6OfKiYOlGaFV/F/kZV27TqfXPWWBc6V Hh+4PAzsfeJ9Ch2WJopZIWu9HI9uDzD7KM/0Z0JeI4dErpjiZ84hyuLFBdNT+BDKXOg/ jyPDLawI7QAtJmNR2WspOO/e8Vb41e137/TVLcMqYvPb9896aJ8nmSAqN1i1+SV4nmoh EhtIMffxBMqV0htLiKhQbcAY/+kh/be68/0x84tfhQNRmsj/O4Rv8MWBgyeLB5TWi5M0 SkHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eWM7J7Qf; 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 p17si7619369pgn.662.2018.04.25.07.19.39; Wed, 25 Apr 2018 07:19: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=eWM7J7Qf; 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 S1754499AbeDYOR0 (ORCPT + 99 others); Wed, 25 Apr 2018 10:17:26 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36412 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753283AbeDYORW (ORCPT ); Wed, 25 Apr 2018 10:17:22 -0400 Received: by mail-qk0-f195.google.com with SMTP id a202so22731627qkg.3; Wed, 25 Apr 2018 07:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+zEmIYDe3CtWjhlDT7KqWnE59jzlXNLXicBzzOW6lpU=; b=eWM7J7QfTpOR0R9VO6EMDBXlkk9HUn2seLkqx9WuY7ktsBhMiIqwe6Qs3BGMGQXola xMpUu3vDQ5KmwXIJl0UhDsWH2dcTce25jSM6wZj7/yIbVsICqAbHMb5qallIYWJ4mC/g aan8lABY4I2McgX1xptA44NqJgt6kUk3O1VgeG1SSHxy6sHOYLFimMJ0xGqmMHyV4qpK kiC6LUBPczgSUcFZYo2e5Ja1FxxEz71fCb7HRfV6ByaP1mm0TvaJbvhlpNSA8vI+42FF vsl4SEHiHRScPPeW/3ZB9azLPSuKhC+NaZF5vme4Z0U2dh3SrymRDhW9R1JFXj+lTQlf EUzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+zEmIYDe3CtWjhlDT7KqWnE59jzlXNLXicBzzOW6lpU=; b=hnqUT5w/yn/qflddsTMvACw6w5PeI/3FYLO2ZiY+lDaZKUPesum9tTvGIC+xvnG5G5 4YjUszISwlwI0S/EV3g1qBSJkN+iZQuED02rscjIjbZ9epSKx02EEavi989YJCsYr7VY rZLMiCdORrhUIXqYvfDRQHdPi7HO0HJpuriffhhukHKa28FceveGMIDqtZgbkdHLvwC4 4o4YCzpKpbOkPes/UumjgEHAcPocO8jDMHymTBSTg6ixR3NJH87IF/iALHbNxJjl+v+a tQN1JhYsWPNtfJBST2SoWATIz9wjjHD+/vwcdaZeyrCWYzOTnPcfq1ljGYrOexkthymC tr3g== X-Gm-Message-State: ALQs6tDFuz05qbXmoO21BkvRvtvN2YqPsGkKou2s1k1uO+e1NpLbbopI AdkBP6crnE2cnaE7TKAw6n25Dnf+ZTB49UwBtCs= X-Received: by 10.55.209.211 with SMTP id o80mr30332252qkl.3.1524665842022; Wed, 25 Apr 2018 07:17:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.102 with HTTP; Wed, 25 Apr 2018 07:17:21 -0700 (PDT) In-Reply-To: <20180424131543.2761-1-luc.vanoostenryck@gmail.com> References: <20180424131543.2761-1-luc.vanoostenryck@gmail.com> From: Andy Shevchenko Date: Wed, 25 Apr 2018 17:17:21 +0300 Message-ID: Subject: Re: [PATCH] apple-gmux: fix gmux_get_client_id()'s return type To: Luc Van Oostenryck Cc: Linux Kernel Mailing List , Darren Hart , Andy Shevchenko , Platform Driver Content-Type: text/plain; charset="UTF-8" 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 4:15 PM, Luc Van Oostenryck wrote: > The method struct vga_switcheroo_handler::get_client_id() is defined > as returning an 'enum vga_switcheroo_client_id' but the implementation > in this driver, gmux_get_client_id(), returns an 'int'. > > Fix this by returning 'enum vga_switcheroo_client_id' in this driver too. > Pushed to my review and testing queue, thanks! > Signed-off-by: Luc Van Oostenryck > --- > drivers/platform/x86/apple-gmux.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c > index 7c4eb86c8..fd2ffebc8 100644 > --- a/drivers/platform/x86/apple-gmux.c > +++ b/drivers/platform/x86/apple-gmux.c > @@ -495,7 +495,7 @@ static int gmux_set_power_state(enum vga_switcheroo_client_id id, > return gmux_set_discrete_state(apple_gmux_data, state); > } > > -static int gmux_get_client_id(struct pci_dev *pdev) > +static enum vga_switcheroo_client_id gmux_get_client_id(struct pci_dev *pdev) > { > /* > * Early Macbook Pros with switchable graphics use nvidia > -- > 2.17.0 > -- With Best Regards, Andy Shevchenko