Return-path: Received: from mail.renesas.com ([202.234.163.13]:36877 "EHLO mail01.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758331AbZCWInZ (ORCPT ); Mon, 23 Mar 2009 04:43:25 -0400 Date: Mon, 23 Mar 2009 17:43:17 +0900 From: morimoto.kuninori@renesas.com Subject: Re: [PATCH] ov772x: add edge contrl support In-reply-to: To: Guennadi Liakhovetski Cc: Linux Media Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII References: Sender: linux-media-owner@vger.kernel.org List-ID: Dear Guennadi > Is edge_strength == 0 a useful edge configuration? Cannot you use it as a > test whether to set all edge parameters or not? If you cannot, well, just > do the same as what you have done with 32-bits - use one bit in strength > as "edge enable" - just exactly in the same way as in your patch. Like > > if (edge_strength & EDGE_ENABLE) { > set_strength; > set_threshold; > set_low; > set_high; > } Hmm.. edge_threshold has 4 un-used bit. we can use it for judge. And sorry, I don't like this style unsigned char edge_strength; unsigned char edge_threshold; unsigned char edge_low; unsigned char edge_high; I will create new struct ov772x_edge for it. Best regards -- Kuninori Morimoto