Received: by 10.223.185.116 with SMTP id b49csp6515333wrg; Thu, 8 Mar 2018 08:40:15 -0800 (PST) X-Google-Smtp-Source: AG47ELvL0bSa45sIRoyKJvcL5rA8rsWaJCH7csqLNyHfZcHgCVKsCQHDQ9bp+OGPEkGQ4b6Tdozh X-Received: by 10.101.92.138 with SMTP id a10mr21669845pgt.129.1520527215102; Thu, 08 Mar 2018 08:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520527215; cv=none; d=google.com; s=arc-20160816; b=hVarm7zCslHPAoWWnjmNfTyOKcXD9xtZZjr2/UCjsIIBdkXQWu/WOXUxvDu4OxR+1s fjXfQ/+O5oRZvRPVCznrMaXsEzob5SUAEG95/vc8fGvblYte3N9hfStQ96zsrUlRvqgf V8ucD2gMweofGT+U7pxOcYj7GwSe+KegCpeqIOkkpUTBSHk4hcqbp09rnGXna1QplRMQ K30pUOqjEWPsX+QqH983aPxKPAgDBJnVFzPgdF8/hsLy2s9mjjcQ0U8Rq+o3o/1QZrhC el8mJyWq43hbyPrXGP9gqdUdoFjgQI54v1XcqTC8aLo8OMNwbCzxuihSsFQDqfmT48UL jxRg== 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:dkim-signature:arc-authentication-results; bh=DK2tbSotWP9d3Wko7uLOLREHUpKFKHVikPN4XGU4KtQ=; b=aAbYhJARaUxwuulrjCS0GpF6WYYeCM4LHClZtZs0/k7Qo6MC3D3oBNaNRTBjX4ZM5L drIZmlw6buWl+02anfPrGfGIgQ7FwduwJiAZyM4T1FOU+afNwjbctXMGOjrLLOU5KkrS vq9r9SplvioSw4TaCOD8NVFZb19GAhZQ3gh4T0hb91ATrCVkrrkx8o/rHcHoBgz700y4 D/zN+YlPh7VSRRJgpUhh954PAXbujMfd6a7HluPtGYaDqIfq9DnghqNe1jIgOJooEeo2 ctk+SZLThkQWZzNUAEaCjSQA0rta//MjOkyGdGK5tP8+uZFImuoqlnEFuj9vSPWNAZfq TkAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ybz3rijV; 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 x3-v6si15085178plb.738.2018.03.08.08.40.00; Thu, 08 Mar 2018 08:40:15 -0800 (PST) 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=Ybz3rijV; 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 S933796AbeCHQio (ORCPT + 99 others); Thu, 8 Mar 2018 11:38:44 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34978 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932087AbeCHQil (ORCPT ); Thu, 8 Mar 2018 11:38:41 -0500 Received: by mail-wm0-f65.google.com with SMTP id x7so489968wmc.0; Thu, 08 Mar 2018 08:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DK2tbSotWP9d3Wko7uLOLREHUpKFKHVikPN4XGU4KtQ=; b=Ybz3rijVvORz56o/OVFtts1Sh5rHfIcpnYH5AmM0LH0/6Zew/daOkXZiYT/KbS9pka 8n1ms8E+n2CWLSCtLkL9Zx5/tfThDCArl1QTYw0zIFvAavuqbNQTKw3DmE7vDqggiJYy zge2K47b+pjs0uWsN93UqsfD43/ZVO1/azoZXFlDyBF46t9H5lYoFJ8yG+iYlAfhsNG8 XM37qdyTXe0+dJAtBk5ThUZbe2WsUvdQcSIO/ru0Z0Cvv1EBUyIJLPKffgFNy2gQX38U D947O406z/pma2ByYnQI5tATn4hbDaJVp8jH559aF2IwxzuxitBu6h05EM7tG+BUnZww utHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DK2tbSotWP9d3Wko7uLOLREHUpKFKHVikPN4XGU4KtQ=; b=PN6mdWhvqFK3t2gA/ogZ8Kmaf6YSnBfSGiezyGNmDC0yixcM/gz8meXFdM4DHj+kxO T2M6uGE2hz1a/nPj2sAbt7j4+e70RnozEypaYVXo4yEaJy8OesuuH1VPf2AZmL8tv2i4 dRvsaXio66uBasFCFl3N8jrOmexwkLIn9aczvR46HrCf8/V+lvW/P0XXrcY1FQbCciV+ Vf4YggBHANahkSzNtszPJ79dSLBzIJYLHLjKuj1smeSptd4rjxE+QD/ps+VUv+5yJPYm /WtVjBKMdCrxGQWw/YpACs7jzEPbptXn8ulsXQjkH/OT8RzhP6y/WKju2ZCmzVla2lPR zEiw== X-Gm-Message-State: AElRT7Go2/SgOHLt/d+Ms9Iv+/sasyjRw5U6+Z5WV0a1lrhLdhpWZp4G oJ6RBBNr/ip+CUjFGPzXoA4= X-Received: by 10.28.173.130 with SMTP id w124mr16511953wme.18.1520527119870; Thu, 08 Mar 2018 08:38:39 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id m62sm22118257wmi.19.2018.03.08.08.38.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 08:38:38 -0800 (PST) Date: Thu, 8 Mar 2018 17:38:37 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Kai-Heng Feng Cc: mjg59@srcf.ucam.org, dvhart@infradead.org, andy@infradead.org, mario.limonciello@dell.com, tiwai@suse.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v2 2/3] platform/x86: dell-*: Add interface for switchable graphics status query Message-ID: <20180308163837.myfmnowz5ogto52w@pali> References: <20180308091023.9061-1-kai.heng.feng@canonical.com> <20180308091023.9061-2-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qk6dsxcavtjhuczj" Content-Disposition: inline In-Reply-To: <20180308091023.9061-2-kai.heng.feng@canonical.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qk6dsxcavtjhuczj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thursday 08 March 2018 17:10:22 Kai-Heng Feng wrote: > +int dell_switchable_gfx_enabled(bool *enabled); What about following API? bool dell_switchable_gfx_is_enabled(void); Are you really interested in errors? Then what about? int dell_switchable_gfx_is_enabled(void); with e.g. < 0 - error =3D 0 - disabled > 0 - enabled --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --qk6dsxcavtjhuczj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCWqFnBgAKCRCL8Mk9A+RD Uv37AKDH/cgvznJjDKcmEdMbu1ruHksJogCfV+C3N7NwJFZfaToBx9dNPNj7ze4= =lj6p -----END PGP SIGNATURE----- --qk6dsxcavtjhuczj--