Merge branch 'remove-eoe-ioctl-ifdef' into 'stable-1.5'
Remove EoE #ifdef in IOCTL header to avoid inconsistencies when EoE is enabled or disabled. See merge request etherlab.org/ethercat!75
This commit is contained in:
commit
e679d23ab9
|
|
@ -118,6 +118,8 @@ static ATTRIBUTES int ec_ioctl_master(
|
|||
io.domain_count = ec_master_domain_count(master);
|
||||
#ifdef EC_EOE
|
||||
io.eoe_handler_count = ec_master_eoe_handler_count(master);
|
||||
#else
|
||||
io.eoe_handler_count = 0;
|
||||
#endif
|
||||
io.phase = (uint8_t) master->phase;
|
||||
io.active = (uint8_t) master->active;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
*
|
||||
* Increment this when changing the ioctl interface!
|
||||
*/
|
||||
#define EC_IOCTL_VERSION_MAGIC 31
|
||||
#define EC_IOCTL_VERSION_MAGIC 32
|
||||
|
||||
// Command-line tool
|
||||
#define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t)
|
||||
|
|
@ -164,9 +164,7 @@ typedef struct {
|
|||
uint32_t slave_count;
|
||||
uint32_t config_count;
|
||||
uint32_t domain_count;
|
||||
#ifdef EC_EOE
|
||||
uint32_t eoe_handler_count;
|
||||
#endif
|
||||
uint8_t phase;
|
||||
uint8_t active;
|
||||
uint8_t scan_busy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue