This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1001816] New: Allow non const cyg_i2c_device for I2C callback functions.
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-patches at ecos dot sourceware dot org
- Date: Wed, 10 Apr 2013 20:54:18 +0000
- Subject: [Bug 1001816] New: Allow non const cyg_i2c_device for I2C callback functions.
- Auto-submitted: auto-generated
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.