Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753052Ab0KYOmB (ORCPT ); Thu, 25 Nov 2010 09:42:01 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:39309 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336Ab0KYOl7 (ORCPT ); Thu, 25 Nov 2010 09:41:59 -0500 From: Laurent Pinchart To: Clemens Ladisch Subject: Re: [RFC/PATCH v6 02/12] media: Media device Date: Thu, 25 Nov 2010 15:42:13 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r1; KDE/4.5.3; x86_64; ; ) Cc: linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, sakari.ailus@maxwell.research.nokia.com, broonie@opensource.wolfsonmicro.com, lennart@poettering.net References: <1290652099-15102-1-git-send-email-laurent.pinchart@ideasonboard.com> <1290652099-15102-3-git-send-email-laurent.pinchart@ideasonboard.com> <4CEE2D4E.6070906@ladisch.de> In-Reply-To: <4CEE2D4E.6070906@ladisch.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011251542.14024.laurent.pinchart@ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 821 Lines: 30 Hi Clemens, Thanks for the review. On Thursday 25 November 2010 10:33:02 Clemens Ladisch wrote: > Laurent Pinchart wrote: > > +struct media_device { > > ... > > + u8 model[32]; > > + u8 serial[40]; > > + u8 bus_info[32]; > > All drivers and userspace applications have to treat this as char[], so > why u8[]? Good question. I've copied the V4L2 practice of using u8 (or __u8) for fixed- length strings in structures. I can't think of any reason for that. I will replace u8 with char unless someone comes up with a good reason to keep u8. -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/