Return-Path: Date: Mon, 2 Jul 2012 14:52:38 +0200 (CEST) From: Peter Meerwald To: Lars-Peter Clausen cc: Jonathan Cameron , linux-iio@vger.kernel.org Subject: Re: [PATCH 2/5] iio: Introduce iio_validate_scan_mask_onehot In-Reply-To: <1341233083-8765-2-git-send-email-lars@metafoo.de> Message-ID: References: <1341233083-8765-1-git-send-email-lars@metafoo.de> <1341233083-8765-2-git-send-email-lars@metafoo.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-ID: > Add a helper function for validating a scan mask for devices where at most one > channel may be selected at a time. This is a common case among devices which > have scan mask restrictions so it makes sense to provide this function in the > core. personally, would find iio_validate_scan_mask_atmost_one clearer than iio_validate_scan_mask_onehot, but it is a bit longer also p. -- Peter Meerwald +43-664-2444418 (mobile)