dnl # dnl # commit d1ed7985b9a6b85ea38a330108c51ec83381c01b dnl # Author: Peter Rosin dnl # Date: Thu Aug 25 23:07:01 2016 +0200 dnl # i2c: move locking operations to their own structure dnl # AC_DEFUN([AC_AMDGPU_I2C_LOCK_OPERATIONS_STRUCT], [AC_MSG_CHECKING([whether struct i2c_lock_operations is defined]) AC_KERNEL_TRY_COMPILE([ #include ], [ struct i2c_lock_operations drm_dp_i2c_lock_ops; ], [ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_I2C_LOCK_OPERATIONS_STRUCT, 1, [struct i2c_lock_operations is defined]) ], [ AC_MSG_RESULT(no) ]) ])