From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH i-g-t 1/4] lib: add function to change connector states Date: Wed, 18 Jun 2014 15:05:48 +0100 Message-ID: <20140618140548.GK31023@nuc-i3427.alporthouse.com> References: <1403099053-31243-1-git-send-email-thomas.wood@intel.com> <1403099053-31243-2-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id C52696E5B2 for ; Wed, 18 Jun 2014 07:05:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1403099053-31243-2-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Thomas Wood Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 18, 2014 at 02:44:10PM +0100, Thomas Wood wrote: > +static int get_card_number(int fd) > +{ > + struct stat buf; > + > + /* find the minor number of the device */ > + fstat(fd, &buf); > + > + return minor(buf.st_rdev); This mixes in rendernode/controlnode tags. -Chris -- Chris Wilson, Intel Open Source Technology Centre