From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753698AbcBJLLb (ORCPT ); Wed, 10 Feb 2016 06:11:31 -0500 Received: from mga09.intel.com ([134.134.136.24]:51255 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752717AbcBJLL3 (ORCPT ); Wed, 10 Feb 2016 06:11:29 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,425,1449561600"; d="scan'208";a="909186966" Date: Wed, 10 Feb 2016 13:11:25 +0200 From: Heikki Krogerus To: Andy Shevchenko Cc: Oliver Neukum , Greg KH , Felipe Balbi , Mathias Nyman , "linux-kernel@vger.kernel.org" , USB Subject: Re: [PATCH 1/3] usb: USB Type-C Connector Class Message-ID: <20160210111125.GD5270@kuha.fi.intel.com> References: <1455037283-106479-1-git-send-email-heikki.krogerus@linux.intel.com> <1455037283-106479-2-git-send-email-heikki.krogerus@linux.intel.com> <1455101342.8878.5.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2016 at 01:05:27PM +0200, Andy Shevchenko wrote: > On Wed, Feb 10, 2016 at 12:49 PM, Oliver Neukum wrote: > > On Tue, 2016-02-09 at 19:01 +0200, Heikki Krogerus wrote: > >> The purpose of this class is to provide unified interface > >> for user space to get the status and basic information about > >> USB Type-C Connectors in the system, control data role > >> swapping, and when USB PD is available, also power role > >> swapping and Altenate Modes. > >> > >> The class will export the following interfaces for every > >> USB Type-C Connector in the system to sysfs: > >> > >> 1. connected - Connection status of the connector > >> 2. alternate_mode - The current Alternate Mode > >> 3. alternate_modes - Lists all Alternate Modes the connector supports > > > > These names are a bit problematic, as they are too similar. > > How about > > > > current_alternate_mode That works for me. > > potential_alternate_modes > > I would vote for supported_* How about connector_alternate_modes? Thanks, -- heikki