From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19164 invoked by alias); 10 Apr 2013 20:54:26 -0000 Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org Received: (qmail 19115 invoked by uid 89); 10 Apr 2013 20:54:26 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 10 Apr 2013 20:54:25 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 7FEBB468000F for ; Wed, 10 Apr 2013 21:54:23 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y1MkCLQ+85ME; Wed, 10 Apr 2013 21:54:19 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001816] New: Allow non const cyg_i2c_device for I2C callback functions. Date: Wed, 10 Apr 2013 20:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijak@siva.com.mk X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00042.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001816 Bug ID: 1001816 Summary: Allow non const cyg_i2c_device for I2C callback functions. Product: eCos Version: CVS Target: All Architecture/Host Other OS: Status: NEW Severity: enhancement Priority: low Component: Patches and contributions Assignee: unassigned@bugs.ecos.sourceware.org Reporter: ilijak@siva.com.mk CC: ecos-patches@ecos.sourceware.org Blocks: 1001397 Created attachment 2178 --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2178&action=edit A patch that allows override of const attribute. The structure cyg_i2c_bus declares a number of callback functions. Some functions have an argument of type const cyg_i2c_device*. In some cases ability to modify cyg_i2c_device may be beneficial so it would be useful to remove const attribute. The example is Kinetis I2C driver (bug 1001397) that uses cyg_delay field for caching of frequency divider once it is computed. The submitted patch provides a possibility for individual driver to override const attribute. Ilija -- You are receiving this mail because: You are on the CC list for the bug.