ipa: raspberrypi: Add a constructor struct DeviceStatus
The constructor sets all fields to 0. This replaces the memset(0) and default value initialisation usage in the agc and lux controllers respectively. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
ace5e21feb
commit
df8cafaf87
4 changed files with 8 additions and 10 deletions
|
@ -172,7 +172,6 @@ Agc::Agc(Controller *controller)
|
|||
// it's not been calculated yet (i.e. Process hasn't yet run).
|
||||
memset(&status_, 0, sizeof(status_));
|
||||
status_.ev = ev_;
|
||||
memset(&last_device_status_, 0, sizeof(last_device_status_));
|
||||
}
|
||||
|
||||
char const *Agc::Name() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue