libfprint/libfprint
Benjamin Berg 4cec28416e lib: Remove state from fp_img_driver activate handler
The state was always AWAIT_FINGER and it was never used by any driver
(except for error checking). So remove it, in particular as a correct
state change will be done after activation anyway.

The only driver with code that actually did anything based on this was
the URU4000 driver. However, all it did was an explicit state change
execution. This is not necessary, as the state_change handler is called
anyway (i.e. we now only write the AWAIT_FINGER register once rather
than twice).

Manual changes plus:

@ init @
identifier driver_name;
identifier activate_func;
@@
struct fp_img_driver driver_name = {
    ...,
    .activate = activate_func,
    ...,
};
@ remove_arg @
identifier dev;
identifier state;
identifier init.activate_func;
@@
activate_func (
	struct fp_img_dev *dev
-	, enum fp_imgdev_state state
	)
{
	<...
-	if (state != IMGDEV_STATE_AWAIT_FINGER_ON) { ... }
	...>
}
2019-06-18 18:19:38 +02:00
..
drivers lib: Remove state from fp_img_driver activate handler 2019-06-18 18:19:38 +02:00
nbis mindtct: Check for multiplication overflow in alloc_power_stats() 2018-12-13 15:48:25 +01:00
drivers_api.h lib: Remove upekts used headers from the docs 2018-11-29 17:32:37 +01:00
empty_file build: Remove the need to modify sources for new drivers 2018-05-24 12:23:39 +02:00
fp_internal.h lib: Add helper for NBIS copy-paste library 2018-12-13 15:48:25 +01:00
fpi-assembling.c lib: Add better guard against huge malloc 2018-12-06 10:58:35 +01:00
fpi-assembling.h lib: Document assembling functions 2018-12-03 16:06:53 +01:00
fpi-async.c lib: Remove upekts used headers from the docs 2018-11-29 17:32:37 +01:00
fpi-async.h lib: Make 6 async reporting funcs private 2018-11-29 17:32:37 +01:00
fpi-core.c core: Add guards to public API 2019-06-11 18:23:56 +02:00
fpi-core.h lib: Remove state from fp_img_driver activate handler 2019-06-18 18:19:38 +02:00
fpi-data.c data: Deprecate print storage API 2019-06-11 18:23:56 +02:00
fpi-data.h lib: Make the fp_print_data structure private 2018-11-29 17:32:37 +01:00
fpi-dev-img.c lib: Remove state from fp_img_driver activate handler 2019-06-18 18:19:38 +02:00
fpi-dev-img.h lib: Remove unused fp_imgdev_verify_state enum 2018-11-29 17:32:36 +01:00
fpi-dev.c lib: Document FP_IMG_DEV 2018-11-25 12:42:11 +00:00
fpi-dev.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-img-pixman.c lib: Document fp_img functions 2018-11-29 13:15:03 +01:00
fpi-img.c lib: Add API docs for fpi_img comparison functions 2018-12-03 14:22:12 +01:00
fpi-img.h lib: Hide struct fp_minutiae from the docs 2018-11-29 17:32:37 +01:00
fpi-log.h lib: Add @short_description for all the sections 2018-11-25 12:42:11 +00:00
fpi-poll.c poll: Remove fpi_timeout_cancel_for_dev 2019-06-11 16:00:19 +02:00
fpi-poll.h lib: Make fpi_poll_is_setup() private 2018-11-09 13:33:02 +01:00
fpi-ssm.c lib: Fix possible dereference in fpi_ssm_next_state() 2018-12-12 15:47:29 +01:00
fpi-ssm.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fpi-sync.c lib: Fix up third-person usage in API docs 2018-10-23 11:24:56 +02:00
fpi-usb.c lib: Add @short_description for all the sections 2018-11-25 12:42:11 +00:00
fpi-usb.h lib: Remove titles from headers 2018-09-28 15:12:39 +02:00
fprint-list-supported-devices.c lib: Supported devices list is for master, not stable 2018-06-12 12:46:19 +02:00
fprint-list-udev-rules.c elan: Remove supported devices from udev whitelist 2018-08-09 14:45:15 +02:00
fprint.h data: Deprecate print storage API 2019-06-11 18:23:56 +02:00
meson.build fdu2000: Remove driver as it has been defunct for long 2019-06-18 15:54:57 +00:00
nbis-helpers.h lib: Add helper for NBIS copy-paste library 2018-12-13 15:48:25 +01:00